Peer(SerializationInfo, StreamingContext) Peer(SerializationInfo, StreamingContext) Peer(SerializationInfo, StreamingContext) Constructor

定義

初始化 Peer 型別的新執行個體。Initializes a new instance of the Peer type.

protected:
 Peer(System::Runtime::Serialization::SerializationInfo ^ serializationInfo, System::Runtime::Serialization::StreamingContext streamingContext);
protected Peer (System.Runtime.Serialization.SerializationInfo serializationInfo, System.Runtime.Serialization.StreamingContext streamingContext);
new System.Net.PeerToPeer.Collaboration.Peer : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.Net.PeerToPeer.Collaboration.Peer

參數

serializationInfo
SerializationInfo SerializationInfo SerializationInfo

參考保有還原序列化此執行個體所需資料的物件。Reference to the object that holds the data needed to deserialize this instance.

streamingContext
StreamingContext StreamingContext StreamingContext

提供還原序列化資料方法的內容。Context that provides the means for deserializing the data. 也稱為序列化資料的來源。Also referred to as the source of the serialized data.

備註

傳回型別Peer物件,在子類別化PeerContactPeerNearMeReturns a type Peer object, subclassed on PeerContact or PeerNearMe. PeerContactPeerName或 PeerNearMeNickname包含唯一參考新的對等物件的名稱。The PeerContact PeerName or the PeerNearMe Nickname contain unique references to the name of the new peer object.

適用於

另請參閱