PeerObject コンストラクター
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
PeerObject クラスの新しいインスタンスを初期化します。
オーバーロード
| 名前 | 説明 |
|---|---|
| PeerObject() |
PeerObject クラスの新しい既定のインスタンスを初期化します。 |
| PeerObject(SerializationInfo, StreamingContext) |
シリアル化に必要な関連付けられたパラメーターを使用して、新しい PeerObject インスタンスを初期化します。 |
| PeerObject(Guid, Byte[], PeerScope) |
関連付けられたスコープとデータを使用して、新しい PeerObject インスタンスを初期化します。 |
注釈
PeerObject インスタンスを構築した後、ピア コラボレーション インフラストラクチャを使用してオブジェクトを発行するには、SetObject メソッドを呼び出す必要があります。
PeerObject()
PeerObject クラスの新しい既定のインスタンスを初期化します。
public:
PeerObject();
public PeerObject();
Public Sub New ()
注釈
PeerObject インスタンスが構築されたら、ピア コラボレーション インフラストラクチャを使用してSetObjectを発行するために、PeerObject メソッドを呼び出す必要があります。
こちらもご覧ください
適用対象
PeerObject(SerializationInfo, StreamingContext)
シリアル化に必要な関連付けられたパラメーターを使用して、新しい PeerObject インスタンスを初期化します。
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)
パラメーター
- serializationInfo
- SerializationInfo
SerializationInfoに関連付けられているPeerObject。
- streamingContext
- StreamingContext
PeerObjectに関連付けられているシリアル化先。
こちらもご覧ください
適用対象
PeerObject(Guid, Byte[], PeerScope)
関連付けられたスコープとデータを使用して、新しい PeerObject インスタンスを初期化します。
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)
パラメーター
- Id
- Guid
PeerObjectのユーザー定義識別子。
- data
- Byte[]
PeerObjectに関する情報を含むデータ BLOB。 このパラメーターは、16K 以下のサイズに制限されています。
- peerScope
- PeerScope
PeerObjectを登録するスコープを指定します。
例外
このメソッドに指定された引数の 1 つが無効です。
注釈
このコンストラクターによって使用される Id パラメーター値が自動生成されます。
PeerObject インスタンスが構築されたら、ピア コラボレーション インフラストラクチャを使用してSetObjectを発行するために、PeerObject メソッドを呼び出す必要があります。