Struct Subnet
Implements
System.Collections.Generic.IEnumerable<System.Boolean>
System.Collections.IEnumerable
Inherited Members
System.ValueType.Equals(System.Object)
System.ValueType.GetHashCode()
System.ValueType.ToString()
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.ReferenceEquals(System.Object, System.Object)
Assembly: Azos.Web.dll
Syntax
public struct Subnet : IEnumerable<bool>, IEnumerable
Constructors
Subnet(IPAddress, Int32, Boolean)
Declaration
public Subnet(IPAddress address, int cidr = -1, bool mapToIPv6 = false)
Parameters
Type |
Name |
Description |
System.Net.IPAddress |
address |
|
System.Int32 |
cidr |
|
System.Boolean |
mapToIPv6 |
|
Subnet(String, Boolean)
Declaration
public Subnet(string subnet, bool mapToIPv6 = false)
Parameters
Type |
Name |
Description |
System.String |
subnet |
|
System.Boolean |
mapToIPv6 |
|
Fields
Address
Declaration
public readonly IPAddress Address
Field Value
Type |
Description |
System.Net.IPAddress |
|
CIDR
Declaration
Field Value
Type |
Description |
System.Int32 |
|
CIDRv4Subnet
Declaration
public const int CIDRv4Subnet = 96
Field Value
Type |
Description |
System.Int32 |
|
MapToIPv6
Declaration
Field Value
Type |
Description |
System.Boolean |
|
Methods
Enumerate(IPAddress, Int32, Boolean)
Declaration
public static IEnumerable<bool> Enumerate(IPAddress address, int CIDR = -1, bool mapToIPv6 = false)
Parameters
Type |
Name |
Description |
System.Net.IPAddress |
address |
|
System.Int32 |
CIDR |
|
System.Boolean |
mapToIPv6 |
|
Returns
Type |
Description |
System.Collections.Generic.IEnumerable<System.Boolean> |
|
GetEnumerator()
Declaration
public IEnumerator<bool> GetEnumerator()
Returns
Type |
Description |
System.Collections.Generic.IEnumerator<System.Boolean> |
|
IsIPv6(IPAddress)
Declaration
public static bool IsIPv6(IPAddress original)
Parameters
Type |
Name |
Description |
System.Net.IPAddress |
original |
|
Returns
Type |
Description |
System.Boolean |
|
Explicit Interface Implementations
IEnumerable.GetEnumerator()
Declaration
IEnumerator IEnumerable.GetEnumerator()
Returns
Type |
Description |
System.Collections.IEnumerator |
|
Implements
System.Collections.Generic.IEnumerable<T>
System.Collections.IEnumerable
Extension Methods