ReceiveActivity.Context Właściwość

Definicja

Pobiera informacje kontekstowe dla tego działania.

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)

Wartość właściwości

IDictionary<String,String>

IDictionary<TKey,TValue> Obiekt, który zawiera informacje kontekstowe dla tego działania.

Atrybuty

Przykłady

W poniższym przykładzie pokazano, jak uzyskać dostęp Context do właściwości.

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

Uwagi

Informacje kontekstowe są używane do komunikacji między klientem a usługą, z nią komunikującą się i obejmują takie elementy jak identyfikacja korelacji.

Dotyczy