Export (0) Print
Expand All

PeerEndPoint Constructor

Generates a new instance of the PeerEndPoint class.

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

  Name Description
Public method PeerEndPoint() Generates a new instance of the PeerEndPoint class.
Public method PeerEndPoint(IPEndPoint) Initializes a new instance of the PeerEndPoint class with the peer-associated endpoint contained in IPEndPoint.
Public method PeerEndPoint(IPEndPoint, String) Initializes a new instance of the PeerEndPoint class with the peer-associated endpoint contained in IPEndPoint and a string specifying endPointName.
Protected method PeerEndPoint(SerializationInfo, StreamingContext) Initializes a new PeerEndPoint instance with the associated parameters required for serialization.
Top

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.

Show:
© 2014 Microsoft