PeerEndPoint Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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 |
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.
public:
PeerEndPoint();
public PeerEndPoint ();
Public Sub New ()
Applies to
PeerEndPoint(IPEndPoint)
Initializes a new instance of the PeerEndPoint class with the peer-associated endpoint contained in IPEndPoint.
public:
PeerEndPoint(System::Net::IPEndPoint ^ endPoint);
public PeerEndPoint (System.Net.IPEndPoint endPoint);
new System.Net.PeerToPeer.Collaboration.PeerEndPoint : System.Net.IPEndPoint -> System.Net.PeerToPeer.Collaboration.PeerEndPoint
Public Sub New (endPoint As IPEndPoint)
Parameters
- endPoint
- IPEndPoint
The endpoint associated with the peer.
See also
Applies to
PeerEndPoint(IPEndPoint, String)
Initializes a new instance of the PeerEndPoint class with the peer-associated endpoint contained in IPEndPoint and a string specifying endPointName
.
public:
PeerEndPoint(System::Net::IPEndPoint ^ endPoint, System::String ^ endPointName);
public PeerEndPoint (System.Net.IPEndPoint endPoint, string endPointName);
new System.Net.PeerToPeer.Collaboration.PeerEndPoint : System.Net.IPEndPoint * string -> System.Net.PeerToPeer.Collaboration.PeerEndPoint
Public Sub New (endPoint As IPEndPoint, endPointName As String)
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
PeerEndPoint(SerializationInfo, StreamingContext)
Initializes a new PeerEndPoint instance with the associated parameters required for serialization.
protected:
PeerEndPoint(System::Runtime::Serialization::SerializationInfo ^ serializationInfo, System::Runtime::Serialization::StreamingContext streamingContext);
protected PeerEndPoint (System.Runtime.Serialization.SerializationInfo serializationInfo, System.Runtime.Serialization.StreamingContext streamingContext);
new System.Net.PeerToPeer.Collaboration.PeerEndPoint : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.Net.PeerToPeer.Collaboration.PeerEndPoint
Protected Sub New (serializationInfo As SerializationInfo, streamingContext As StreamingContext)
Parameters
- serializationInfo
- SerializationInfo
The SerializationInfo associated with the PeerEndPoint.
- streamingContext
- StreamingContext
The serialization destination associated with the PeerEndPoint.