PeerEndPoint Konstruktory

Definice

Vygeneruje novou instanci PeerEndPoint třídy.

Přetížení

PeerEndPoint()

Vygeneruje novou instanci PeerEndPoint třídy.

PeerEndPoint(IPEndPoint)

Inicializuje novou instanci PeerEndPoint třídy s koncovým bodem přidruženým k partnerskému bodě obsaženému v IPEndPoint.

PeerEndPoint(IPEndPoint, String)

Inicializuje novou instanci PeerEndPoint třídy s koncovým bodem přidruženým k partnerskému bodě obsaženým v IPEndPoint a řetězcem určujícím endPointName.

PeerEndPoint(SerializationInfo, StreamingContext)

Inicializuje novou PeerEndPoint instanci s přidruženými parametry požadovanými pro serializaci.

Poznámky

Tento konstruktor je k dispozici v případě, že vývojář už zná IP adresu PeerEndPoint uživatele, kterého chce kontaktovat.

Použití tohoto konstruktoru k vygenerování explicitní PeerEndPoint instance usnadňuje vytvoření Peer instance třídy, která může být použita k interakci s partnerským identifikovaným IP adresou pomocí infrastruktury spolupráce peer.

PeerEndPoint()

Vygeneruje novou instanci PeerEndPoint třídy.

public:
 PeerEndPoint();
public PeerEndPoint ();
Public Sub New ()

Platí pro

PeerEndPoint(IPEndPoint)

Inicializuje novou instanci PeerEndPoint třídy s koncovým bodem přidruženým k partnerskému bodě obsaženému v 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)

Parametry

endPoint
IPEndPoint

Koncový bod přidružený k partnerskému bodě.

Viz také

Platí pro

PeerEndPoint(IPEndPoint, String)

Inicializuje novou instanci PeerEndPoint třídy s koncovým bodem přidruženým k partnerskému bodě obsaženým v IPEndPoint a řetězcem určujícím 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)

Parametry

endPoint
IPEndPoint

Koncový bod přidružený k partnerskému bodě.

endPointName
String

Určuje název přidružený k PeerEndPoint.

Výjimky

Argument endPoint určuje null.

Zadaný endPoint není platný koncový bod IPv6.

Platí pro

PeerEndPoint(SerializationInfo, StreamingContext)

Inicializuje novou PeerEndPoint instanci s přidruženými parametry požadovanými pro serializaci.

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)

Parametry

serializationInfo
SerializationInfo

SerializationInfo přidružený k tomuto objektu PeerEndPoint.

streamingContext
StreamingContext

Cíl serializace přidružený k PeerEndPoint.

Platí pro