PeerNameRecord::Data Property

 

Gets or sets application-defined binary data for the PeerNameRecord object.

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

public:
property array<unsigned char>^ Data {
	array<unsigned char>^ get();
	void set(array<unsigned char>^ value);
}

Property Value

Type: array<System::Byte>^

An array of bytes that holds the binary data associated with the entry. The default value for this property is an empty (zero-length) array instance.

Exception Condition
ArgumentException

The length of the binary data array to set is either greater than 4096 or less than 1.

ArgumentNullException

The data to set is null.

The maximum amount of data that can be supplied is 4096 bytes. This property cannot be null.

.NET Framework
Available since 3.5
Return to top
Show: