Property | Type | Description | |
---|---|---|---|
IPRange | System | ||
RecursivePopulate | void |
Method | Description | |
---|---|---|
AllAddressesBetween ( IPAddress firstAddress, IPAddress lastAddress ) : List |
Returns all IPAddresses that are between the provided addresses
|
|
AllAddressesInRange ( ) : List |
Returns a list of all IPAddresses in the specified range
|
|
Contains ( IEnumerable |
Returns true if the provided IPAddress is within one of the provided IPRanges, otherwise false
|
|
Contains ( IPAddress ipAddress ) : bool |
Returns true if this IPRange contains the provided IPAddress
|
|
Contains ( byte ipAddressBytes ) : bool |
Returns true if this IPRange contains the provided IPAddress bytes
|
|
Contains ( string ipAddressStr ) : bool |
Returns true if this IPRange contains the provided IPAddress
|
|
IPRange ( IPAddress address, IPAddress subnetmask ) : System |
Initialise an IPRange using the provided address and subnet mask.
|
|
IPRange ( string rangeCIDR ) : System |
Initialise an IPRange using the provided CIDR notation.
|
|
IsAutoAssignedAddress ( IPAddress ipAddress ) : bool |
Returns true if the provided IPAddress is within one of the autoassigned ip ranges, otherwise false
|
|
ToString ( ) : string |
Returns a clean ToString of the IPRange
|
Method | Description | |
---|---|---|
IPRange ( ) : System | ||
RecursivePopulate ( byte firstAddressBytes, byte lastAddressBytes, byte knownBytes, List |
Recursively populates the result list by looping over all address byte levels
|
public static AllAddressesBetween ( IPAddress firstAddress, IPAddress lastAddress ) : List |
||
firstAddress | IPAddress | |
lastAddress | IPAddress | |
return | List |
public static Contains ( IEnumerable |
||
ranges | IEnumerable |
The ranges to search |
ipAddress | IPAddress | The IPAddress to find in ranges |
return | bool |
public Contains ( IPAddress ipAddress ) : bool | ||
ipAddress | IPAddress | The IPAddress to check |
return | bool |
public Contains ( byte ipAddressBytes ) : bool | ||
ipAddressBytes | byte | The IPAddress bytes to check |
return | bool |
public Contains ( string ipAddressStr ) : bool | ||
ipAddressStr | string | The IPAddress to check |
return | bool |
public IPRange ( IPAddress address, IPAddress subnetmask ) : System | ||
address | IPAddress | The address range to create |
subnetmask | IPAddress | The subnet mask that specifies the network-identifying portion of the address |
return | System |
public IPRange ( string rangeCIDR ) : System | ||
rangeCIDR | string | IP range using CIDR notation, e.g. "192.168.1.0/24" contains 192.168.1.0 to 192.168.1.255 |
return | System |
public static IsAutoAssignedAddress ( IPAddress ipAddress ) : bool | ||
ipAddress | IPAddress | The IPAddress to find in ranges |
return | bool |