DhcpLeaseSpec

Desired MikroTik DHCP lease/static reservation (/ip/dhcp-server/lease).

public sealed record DhcpLeaseSpec : IEquatable<DhcpLeaseSpec>

1. Constructors

1.1. DhcpLeaseSpec(string, string, string)

Desired MikroTik DHCP lease/static reservation (/ip/dhcp-server/lease).

public DhcpLeaseSpec(string Address, string MacAddress, string Comment)
Table 1. Parameters
Name Type Description

Address

string

MacAddress

string

Comment

string

2. Properties

2.1. Address

public string Address { get; init; }

2.2. Comment

public string Comment { get; init; }

2.3. MacAddress

public string MacAddress { get; init; }

3. Operators

3.1. operator !=(DhcpLeaseSpec, DhcpLeaseSpec)

public static bool operator !=(DhcpLeaseSpec left, DhcpLeaseSpec right)
Table 2. Parameters
Name Type Description

left

DhcpLeaseSpec

right

DhcpLeaseSpec

Returns: bool

3.2. operator ==(DhcpLeaseSpec, DhcpLeaseSpec)

public static bool operator ==(DhcpLeaseSpec left, DhcpLeaseSpec right)
Table 3. Parameters
Name Type Description

left

DhcpLeaseSpec

right

DhcpLeaseSpec

Returns: bool