IPNetwork.Contains(IPAddress) Method

Definition

Determine whether a given The IPAddress is part of the IP network.

public:
 bool Contains(System::Net::IPAddress ^ address);
public bool Contains (System.Net.IPAddress address);
member this.Contains : System.Net.IPAddress -> bool
Public Function Contains (address As IPAddress) As Boolean

Parameters

address
IPAddress

The IPAddress.

Returns

true if the IPAddress is part of the IP network. Otherwise, false.

Applies to