Breyta

Deila með


PeerObject Constructors

Definition

Initializes a new instance of the PeerObject class.

Overloads

PeerObject()

Initializes a new default instance of the PeerObject class.

PeerObject(SerializationInfo, StreamingContext)

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

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()

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

Applies to

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

Parameters

serializationInfo
SerializationInfo

The SerializationInfo associated with the PeerObject.

streamingContext
StreamingContext

The serialization destination associated with the PeerObject.

See also

Applies to

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
Public Sub New (Id As Guid, data As Byte(), peerScope As PeerScope)

Parameters

Id
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

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