다음을 통해 공유


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<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);
}

설명

컨텍스트 정보는 클라이언트와 서비스 간의 통신에 사용되며 상관 관계 식별 정보 등을 포함합니다.

적용 대상