PeerEndPoint Constructor

 

Generates a new instance of the PeerEndPoint class.

Namespace:   System.Net.PeerToPeer.Collaboration
Assembly:  System.Net (in System.Net.dll)

NameDescription
System_CAPS_pubmethodPeerEndPoint()

Generates a new instance of the PeerEndPoint class.

System_CAPS_pubmethodPeerEndPoint(IPEndPoint)

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

System_CAPS_pubmethodPeerEndPoint(IPEndPoint, String)

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

System_CAPS_protmethodPeerEndPoint(SerializationInfo, StreamingContext)

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

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.

Return to top
Show: