PeerApplication.Data PeerApplication.Data PeerApplication.Data PeerApplication.Data Property

定義

取得或設定與目前 PeerApplication 執行個體相關聯的資料。Gets or sets data associated with the current PeerApplication instance.

public:
 property cli::array <System::Byte> ^ Data { cli::array <System::Byte> ^ get(); void set(cli::array <System::Byte> ^ value); };
public byte[] Data { get; set; }
member this.Data : byte[] with get, set
Public Property Data As Byte()

屬性值

Byte[]

Byte 資料的陣列,包含要與對等應用程式相關聯的二進位物件。Array of Byte data that contain a binary object to associate with the peer application. 通常是小型影像或 XML BLOB (二進位大型物件)。This is commonly a small image or XML blob.

例外狀況

這個二進位資料物件的大小不是小於 0 就是大於 4,096 位元組。The size of this binary data object is either less than 0 or greater than 4,096 bytes.

備註

這項資料是自由格式,以及所提供的主對等電腦。This data is free form and is provided by the hosting peer. 可以提供資料的最大數量是 4,096 個位元組。The maximum amount of data that can be provided is 4,096 bytes. 這項資料不屬於PeerApplication邀請,卻讓上本機對等的應用程式與相關聯的其他資料。This data is not part of a PeerApplication invitation, but rather allows additional data to be associated with the application on the local peer.

適用於

另請參閱