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

Definition

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

Parameters

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.

Remarks

Returns a type Peer object, subclassed on PeerContact or PeerNearMe. The PeerContact PeerName or the PeerNearMe Nickname contain unique references to the name of the new peer object.

Applies to

See also