-
-
Notifications
You must be signed in to change notification settings - Fork 0
easyextensions IpAddressExtensions
BigMakCode edited this page Aug 5, 2024
·
1 revision
IPAddress extensions.
flowchart LR
classDef interfaceStyle stroke-dasharray: 5 5;
classDef abstractStyle stroke-width:4px
subgraph EasyExtensions
EasyExtensions.IpAddressExtensions[[IpAddressExtensions]]
end
| Returns | Name |
|---|---|
IPAddress |
GetBroadcast(...)Get broadcast address. |
IPAddress |
GetNetwork(...)Get network address. |
BigInteger |
ToNumber(IPAddress ipAddress)Convert IP address to number. |
IPAddress extensions.
public static IPAddress GetNetwork(IPAddress address, IPAddress subnetMask)| Type | Name | Description |
|---|---|---|
IPAddress |
address | IP address. |
IPAddress |
subnetMask | Subnet mask. |
Get network address.
Network address.
public static IPAddress GetBroadcast(IPAddress address, IPAddress subnetMask)| Type | Name | Description |
|---|---|---|
IPAddress |
address | IP address. |
IPAddress |
subnetMask | Subnet mask. |
Get broadcast address.
Broadcast address.
public static IPAddress GetNetwork(IPAddress address, int subnetMask)| Type | Name | Description |
|---|---|---|
IPAddress |
address | IP address. |
int |
subnetMask | Subnet mask. |
Get network address.
Network address.
| Name | Description |
|---|---|
| ArgumentOutOfRangeException | Thrown when subnet mask is invalid. |
public static IPAddress GetBroadcast(IPAddress address, int subnetMask)| Type | Name | Description |
|---|---|---|
IPAddress |
address | IP address. |
int |
subnetMask | Subnet mask. |
Get broadcast address.
Broadcast address.
| Name | Description |
|---|---|
| ArgumentOutOfRangeException | Thrown when subnet mask is invalid. |
public static BigInteger ToNumber(IPAddress ipAddress)| Type | Name | Description |
|---|---|---|
IPAddress |
ipAddress | IP address. |
Convert IP address to number.
IP address as number.
| Name | Description |
|---|---|
| ArgumentException | Invalid IP address family. |
Generated with ModularDoc