Peer(SerializationInfo, StreamingContext) 构造函数

定义

初始化 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
Protected Sub New (serializationInfo As SerializationInfo, streamingContext As StreamingContext)

参数

serializationInfo
SerializationInfo

对象的引用,该对象保存反序列化此实例时所需的数据。Reference to the object that holds the data needed to deserialize this instance.

streamingContext
StreamingContext

提供反序列化数据的方式的上下文。Context that provides the means for deserializing the data. 也称为序列化数据的源。Also referred to as the source of the serialized data.

注解

返回 Peer 或上的子类类型 PeerContact PeerNearMeReturns a type Peer object, subclassed on PeerContact or PeerNearMe. PeerContact PeerName 或 PeerNearMe Nickname 包含对新对等对象的名称的唯一引用。The PeerContact PeerName or the PeerNearMe Nickname contain unique references to the name of the new peer object.

适用于

另请参阅