ReceiveActivity.Context Propriété

Définition

Obtient les informations de contexte correspondant à cette activité.

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)

Valeur de propriété

Objet IDictionary<TKey,TValue> contenant les informations de contexte de cette activité.

Attributs

Exemples

L'exemple suivant montre comment accéder à la propriété Context.

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

Remarques

Les informations de contexte sont utilisées pour la communication entre le client et le service avec lequel il communique et comprennent des éléments tels que l'identification pour la corrélation.

S’applique à