Share via


ReceiveActivity.Context Eigenschaft

Definition

Ruft die Kontextinformationen für diese Aktivität ab.

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)

Eigenschaftswert

Ein IDictionary<TKey,TValue>-Objekt, das Kontextinformationen für diese Aktivität enthält.

Attribute

Beispiele

Im folgenden Beispiel wird der Zugriff auf die Context-Eigenschaft veranschaulicht.

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

Hinweise

Kontextinformationen werden für die Kommunikation zwischen dem Client und dem jeweiligen Dienst verwendet und enthalten u. A. die Identifizierung zur Korrelation.

Gilt für: