Share via


IPNetwork(IPAddress, Int32) Constructor

Definition

Create a new IPNetwork with the specified IPAddress and prefix length.

public:
 IPNetwork(System::Net::IPAddress ^ prefix, int prefixLength);
public IPNetwork (System.Net.IPAddress prefix, int prefixLength);
new Microsoft.AspNetCore.HttpOverrides.IPNetwork : System.Net.IPAddress * int -> Microsoft.AspNetCore.HttpOverrides.IPNetwork
Public Sub New (prefix As IPAddress, prefixLength As Integer)

Parameters

prefix
IPAddress

The IPAddress.

prefixLength
Int32

The prefix length.

Exceptions

prefixLength is out of range.

Applies to