Table of Contents

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

MicrosoftDhcpServerv4LeaseAddressState

ClientIdentifier

Gets or sets the client identifier.

public string ClientIdentifier { get; set; }

Property Value

string

ClientName

Gets or sets the name of the client.

public string ClientName { get; set; }

Property Value

string

ClientType

Gets or sets the client type.

public MicrosoftDhcpServerv4LeaseClientType ClientType { get; set; }

Property Value

MicrosoftDhcpServerv4LeaseClientType

Description

Gets or sets the description of the lease.

public string Description { get; set; }

Property Value

string

IPAddress

Gets or sets the IP address of the lease.

public string IPAddress { get; set; }

Property Value

string

LeaseExpiry

Gets or sets the date and time on which the lease expires.

public DateTime LeaseExpiry { get; set; }

Property Value

DateTime

LeaseExpiryString

Gets the lease expiry as a human readable string.

public string LeaseExpiryString { get; set; }

Property Value

string

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

MicrosoftDhcpServerv4LeaseNapStatus

PolicyName

Gets or sets the policy on which this IP address was leased.

public string PolicyName { get; set; }

Property Value

string

ProbationExpiry

Gets or sets the date and time on which the probation period expires.

public DateTime ProbationExpiry { get; set; }

Property Value

DateTime

ProbationExpiryString

Gets the probation period expiry as a human readable string.

public string ProbationExpiryString { get; set; }

Property Value

string

Methods

CompareTo(MicrosoftDhcpServerv4Lease)

Compares two CENTREL.XIA.Configuration.Types.MicrosoftDhcpServerv4Lease values to allow sorting by IP address.

public int CompareTo(MicrosoftDhcpServerv4Lease other)

Parameters

other MicrosoftDhcpServerv4Lease

The 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.