PeerEndPoint Constructors

Definition

Generates a new instance of the PeerEndPoint class.

Overloads

PeerEndPoint()

Generates a new instance of the PeerEndPoint class.

PeerEndPoint(IPEndPoint)

Initializes a new instance of the PeerEndPoint class with the peer-associated endpoint contained in IPEndPoint.

PeerEndPoint(IPEndPoint, String)

Initializes a new instance of the PeerEndPoint class with the peer-associated endpoint contained in IPEndPoint and a string specifying endPointName.

PeerEndPoint(SerializationInfo, StreamingContext)

Initializes a new PeerEndPoint instance with the associated parameters required for serialization.

Remarks

This constructor is provided in the event a developer already knows the IP address of the PeerEndPoint they wish to contact.

Utilizing this constructor to generate an explicit PeerEndPoint instance facilitates the creation of a Peer class instance that can in turn be used to interact with the peer identified by an IP address, using the Peer Collaboration Infrastructure.

PeerEndPoint()

Generates a new instance of the PeerEndPoint class.

C#
public PeerEndPoint();

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

PeerEndPoint(IPEndPoint)

Initializes a new instance of the PeerEndPoint class with the peer-associated endpoint contained in IPEndPoint.

C#
public PeerEndPoint(System.Net.IPEndPoint endPoint);

Parameters

endPoint
IPEndPoint

The endpoint associated with the peer.

See also

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

PeerEndPoint(IPEndPoint, String)

Initializes a new instance of the PeerEndPoint class with the peer-associated endpoint contained in IPEndPoint and a string specifying endPointName.

C#
public PeerEndPoint(System.Net.IPEndPoint endPoint, string endPointName);

Parameters

endPoint
IPEndPoint

The endpoint associated with the peer.

endPointName
String

Specifies the name associated with the PeerEndPoint.

Exceptions

The endPoint argument specifies null.

The endPoint specified is not a valid IPv6 endpoint.

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

PeerEndPoint(SerializationInfo, StreamingContext)

Initializes a new PeerEndPoint instance with the associated parameters required for serialization.

C#
protected PeerEndPoint(System.Runtime.Serialization.SerializationInfo serializationInfo, System.Runtime.Serialization.StreamingContext streamingContext);

Parameters

serializationInfo
SerializationInfo

The SerializationInfo associated with the PeerEndPoint.

streamingContext
StreamingContext

The serialization destination associated with the PeerEndPoint.

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1