Skip to content

CreateByHostBitLength Method ​

Definition ​

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

IPAddress CreateByHostBitLength(int hostpartLength) ​

csharp
IPAddress CreateByHostBitLength(int hostpartLength)

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

Parameters ​

NameDescription
hostpartLengthNumber of bits used for hosts (between 2 and 30)

Returns ​

A corresponding IPAddress subnet mask