ContextMessageProperty 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
初始化 ContextMessageProperty 類別的新執行個體。
多載
| 名稱 | Description |
|---|---|
| ContextMessageProperty() |
初始化 ContextMessageProperty 類別的新執行個體。 |
| ContextMessageProperty(IDictionary<String,String>) |
初始化一個以特定上下文的新類別實例 ContextMessageProperty 。 |
ContextMessageProperty()
初始化 ContextMessageProperty 類別的新執行個體。
public:
ContextMessageProperty();
public ContextMessageProperty();
Public Sub New ()
適用於
ContextMessageProperty(IDictionary<String,String>)
初始化一個以特定上下文的新類別實例 ContextMessageProperty 。
public:
ContextMessageProperty(System::Collections::Generic::IDictionary<System::String ^, System::String ^> ^ context);
public ContextMessageProperty(System.Collections.Generic.IDictionary<string,string> context);
new System.ServiceModel.Channels.ContextMessageProperty : System.Collections.Generic.IDictionary<string, string> -> System.ServiceModel.Channels.ContextMessageProperty
Public Sub New (context As IDictionary(Of String, String))
參數
- context
- IDictionary<String,String>
the that IDictionary<TKey,TValue> 包含用於將訊息與用戶端與服務之間特定對話關聯起來的上下文資訊。
例外狀況
context 是 null。