Skip to content

CreateByNetBitLength Method ​

Definition ​

  • Namespace: JASE.Network
  • Assembly: JASE.Network.dll

IPAddress CreateByNetBitLength(int netpartLength) ​

csharp
IPAddress CreateByNetBitLength(int netpartLength)

Generates a subnet mask based on the number of bits used for the network portion.

Parameters ​

NameDescription
netpartLengthNumber of bits reserved for the network portion (between 2 and 30)

Returns ​

A corresponding IPAddress subnet mask