Bewerken

Share via


IPNetwork.Contains(IPAddress) Method

Definition

Determines whether a given IPAddress is part of the 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 to check.

Returns

true if the IPAddress is part of the network; otherwise, false.

Exceptions

The specified address is null.

Applies to