IPNetwork(IPAddress, Int32) Constructor
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
public:
IPNetwork(System::Net::IPAddress ^ baseAddress, int prefixLength);
public IPNetwork (System.Net.IPAddress baseAddress, int prefixLength);
new System.Net.IPNetwork : System.Net.IPAddress * int -> System.Net.IPNetwork
Public Sub New (baseAddress As IPAddress, prefixLength As Integer)
Parameters
- prefixLength
- Int32
The length of the prefix in bits.
Exceptions
The specified baseAddress
is null
.
The specified prefixLength
is smaller than 0
or longer than maximum length of prefixLength
's AddressFamily.
The specified baseAddress
has non-zero bits after the network prefix.
Applies to
Bekerjasama dengan kami di GitHub
Sumber untuk kandungan ini boleh didapati di GitHub, di mana anda juga boleh mencipta dan menyemak isu dan menarik permintaan. Untuk maklumat lanjut, lihat panduan penyumbang kami.