PeerApplication.Data Property

 

Gets or sets data associated with the current PeerApplication instance.

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

public byte[] Data { get; set; }

Property Value

Type: System.Byte[]

Array of Byte data that contain a binary object to associate with the peer application. This is commonly a small image or XML blob.

Exception Condition
ArgumentException

The size of this binary data object is either less than 0 or greater than 4,096 bytes.

ObjectDisposedException

The PeerApplication object has been disposed.

This data is free form and is provided by the hosting peer. The maximum amount of data that can be provided is 4,096 bytes. This data is not part of a PeerApplication invitation, but rather allows additional data to be associated with the application on the local peer.

.NET Framework
Available since 3.5
Return to top
Show: