Class MicrosoftDhcpServerv4Lease
- Namespace
- CENTREL.XIA.Configuration.Types
- Assembly
- CENTREL.XIA.Configuration.Types.dll
Represents a Microsoft DHCP IPv4 lease.
public class MicrosoftDhcpServerv4Lease : GlobalSerializableClassicBase, IComparable<MicrosoftDhcpServerv4Lease>
- Inheritance
-
MicrosoftDhcpServerv4Lease
- Implements
Constructors
MicrosoftDhcpServerv4Lease()
Initializes a new instance of the CENTREL.XIA.Configuration.Types.MicrosoftDhcpServerv4Lease class.
public MicrosoftDhcpServerv4Lease()
Properties
AddressState
Gets or sets the state of the address.
public MicrosoftDhcpServerv4LeaseAddressState AddressState { get; set; }
Property Value
ClientIdentifier
Gets or sets the client identifier.
public string ClientIdentifier { get; set; }
Property Value
ClientName
Gets or sets the name of the client.
public string ClientName { get; set; }
Property Value
ClientType
Gets or sets the client type.
public MicrosoftDhcpServerv4LeaseClientType ClientType { get; set; }
Property Value
Description
Gets or sets the description of the lease.
public string Description { get; set; }
Property Value
IPAddress
Gets or sets the IP address of the lease.
public string IPAddress { get; set; }
Property Value
LeaseExpiry
Gets or sets the date and time on which the lease expires.
public DateTime LeaseExpiry { get; set; }
Property Value
LeaseExpiryString
Gets the lease expiry as a human readable string.
public string LeaseExpiryString { get; set; }
Property Value
NapStatus
Gets or sets the NAP status of the Microsoft DHCP IPv4 lease. This is deprecated in Windows Server 2016 and above.
public MicrosoftDhcpServerv4LeaseNapStatus NapStatus { get; set; }
Property Value
PolicyName
Gets or sets the policy on which this IP address was leased.
public string PolicyName { get; set; }
Property Value
ProbationExpiry
Gets or sets the date and time on which the probation period expires.
public DateTime ProbationExpiry { get; set; }
Property Value
ProbationExpiryString
Gets the probation period expiry as a human readable string.
public string ProbationExpiryString { get; set; }
Property Value
Methods
CompareTo(MicrosoftDhcpServerv4Lease)
Compares two CENTREL.XIA.Configuration.Types.MicrosoftDhcpServerv4Lease values to allow sorting by IP address.
public int CompareTo(MicrosoftDhcpServerv4Lease other)
Parameters
other
MicrosoftDhcpServerv4LeaseThe CENTREL.XIA.Configuration.Types.MicrosoftDhcpServerv4Lease to compare to.
Returns
- int
The sort order of the two CENTREL.XIA.Configuration.Types.MicrosoftDhcpServerv4Lease objects.
ToString()
Returns the lease as a human readable string.
public override string ToString()
Returns
- string
The lease as a human readable string.