PeerObject PeerObject PeerObject PeerObject Constructors

Definition

Overloads

PeerObject() PeerObject() PeerObject()

Initializes a new default instance of the PeerObject class.

PeerObject(SerializationInfo, StreamingContext) PeerObject(SerializationInfo, StreamingContext) PeerObject(SerializationInfo, StreamingContext)

Initializes a new PeerObject instance with the associated parameters required for serialization.

PeerObject(Guid, Byte[], PeerScope) PeerObject(Guid, Byte[], PeerScope) PeerObject(Guid, Byte[], PeerScope)

Initializes a new PeerObject instance with the associated scope and data.

Remarks

After the PeerObject instance is constructed, the SetObject method must be called to publish the object with the Peer Collaboration infrastructure.

PeerObject() PeerObject() PeerObject()

Initializes a new default instance of the PeerObject class.

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

Remarks

After the PeerObject instance is constructed, the SetObject method must be called to publish the PeerObject with the Peer Collaboration infrastructure.

See also

PeerObject(SerializationInfo, StreamingContext) PeerObject(SerializationInfo, StreamingContext) PeerObject(SerializationInfo, StreamingContext)

Initializes a new PeerObject instance with the associated parameters required for serialization.

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

Parameters

streamingContext
StreamingContext StreamingContext StreamingContext StreamingContext

The serialization destination associated with the PeerObject.

See also

PeerObject(Guid, Byte[], PeerScope) PeerObject(Guid, Byte[], PeerScope) PeerObject(Guid, Byte[], PeerScope)

Initializes a new PeerObject instance with the associated scope and data.

public:
 PeerObject(Guid Id, cli::array <System::Byte> ^ data, System::Net::PeerToPeer::Collaboration::PeerScope peerScope);
public PeerObject (Guid Id, byte[] data, System.Net.PeerToPeer.Collaboration.PeerScope peerScope);
new System.Net.PeerToPeer.Collaboration.PeerObject : Guid * byte[] * System.Net.PeerToPeer.Collaboration.PeerScope -> System.Net.PeerToPeer.Collaboration.PeerObject

Parameters

Id
Guid Guid Guid Guid

The user-defined identifier for the PeerObject.

data
Byte[]

A data blob that contains information about the PeerObject. This parameter is limited a size that is less than or equal to 16K.

peerScope
PeerScope PeerScope PeerScope PeerScope

Specifies the scope in which the PeerObject is to be registered.

Exceptions

One of the arguments provided to this method is not valid.

Remarks

The Id parameter value utilized by this constructor is auto generated. After the PeerObject instance is constructed, the SetObject method must be called to publish the PeerObject with the Peer Collaboration infrastructure.

See also

Applies to