共用方式為


ReceiveActivity.Context 屬性

定義

取得此活動的內容訊息。

public:
 property System::Collections::Generic::IDictionary<System::String ^, System::String ^> ^ Context { System::Collections::Generic::IDictionary<System::String ^, System::String ^> ^ get(); };
[System.ComponentModel.Browsable(false)]
public System.Collections.Generic.IDictionary<string,string> Context { get; }
[<System.ComponentModel.Browsable(false)>]
member this.Context : System.Collections.Generic.IDictionary<string, string>
Public ReadOnly Property Context As IDictionary(Of String, String)

屬性值

IDictionary<TKey,TValue> 物件,包含這個活動的內容資訊。

屬性

範例

下列範例將示範如何存取 Context 屬性。

// Create EndpointAddress from Uri and ReceiveActivity
static public EndpointAddress CreateEndpointAddress(string uri, ReceiveActivity receiveActivity)
{
    return CreateEndpointAddress(uri, receiveActivity.Context);
}

備註

內容資訊,是用戶端及其所通訊的服務之間所使用的通訊,包括相互關聯的識別。

適用於