Muokkaa

Jaa


ReceiveActivity.Context Property

Definition

Gets the context information for this activity.

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)

Property Value

A IDictionary<TKey,TValue> object that contains context information for this activity.

Attributes

Examples

The following example shows how to access the Context property.

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

Remarks

Context information is used for communication between the client and the service it is communicating with and includes such things as identification for correlation.

Applies to