Peer Constructor (SerializationInfo, StreamingContext)


Initializes a new instance of the Peer type.

Namespace:   System.Net.PeerToPeer.Collaboration
Assembly:  System.Net (in System.Net.dll)

protected Peer(
	SerializationInfo serializationInfo,
	StreamingContext streamingContext


Type: System.Runtime.Serialization.SerializationInfo

Reference to the object that holds the data needed to deserialize this instance.

Type: System.Runtime.Serialization.StreamingContext

Context that provides the means for deserializing the data. Also referred to as the source of the serialized data.

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.

.NET Framework
Available since 3.5
Return to top