PeerEndPoint Constructor (IPEndPoint^, String^)
.NET Framework (current version)
Initializes a new instance of the PeerEndPoint class with the peer-associated endpoint contained in IPEndPoint and a string specifying endPointName.
Assembly: System.Net (in System.Net.dll)
Parameters
- endPoint
-
Type:
System.Net::IPEndPoint^
The endpoint associated with the peer.
- endPointName
-
Type:
System::String^
Specifies the name associated with the PeerEndPoint.
| Exception | Condition |
|---|---|
| ArgumentNullException | The endPoint argument specifies null. |
| ArgumentException | The endPoint specified is not a valid IPv6 endpoint. |
.NET Framework
Available since 3.5
Available since 3.5
Show: