SendActivity.GetContext 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
返回一个字典,该字典包含用于在客户端与其通信的服务之间通信的上下文,包括用于关联标识之类的内容。
重载
| 名称 | 说明 |
|---|---|
| GetContext(Activity, ChannelToken, Type) |
获取或设置发送操作的上下文信息。 |
| GetContext(Activity, String, String, Type) |
静态方法返回给定活动实例的上下文信息、活动使用的终结点名称、所有者活动的名称和 Type 表示协定类型的对象。 |
注解
上下文信息用于客户端与其通信的服务之间的通信,并包括相关标识等内容。
GetContext(Activity, ChannelToken, Type)
获取或设置发送操作的上下文信息。
public:
static System::Collections::Generic::IDictionary<System::String ^, System::String ^> ^ GetContext(System::Workflow::ComponentModel::Activity ^ activity, System::Workflow::Activities::ChannelToken ^ endpoint, Type ^ contractType);
public static System.Collections.Generic.IDictionary<string,string> GetContext(System.Workflow.ComponentModel.Activity activity, System.Workflow.Activities.ChannelToken endpoint, Type contractType);
static member GetContext : System.Workflow.ComponentModel.Activity * System.Workflow.Activities.ChannelToken * Type -> System.Collections.Generic.IDictionary<string, string>
Public Shared Function GetContext (activity As Activity, endpoint As ChannelToken, contractType As Type) As IDictionary(Of String, String)
参数
- activity
- Activity
需要其上下文信息的活动。
- endpoint
- ChannelToken
与服务关联的终结点信息。
返回
一个基于字典的集合,其中包含 XmlQualifiedName 键及其关联的 String 值。
注解
上下文信息用于客户端与其通信的服务之间的通信,并包括相关标识等内容。
适用于
GetContext(Activity, String, String, Type)
静态方法返回给定活动实例的上下文信息、活动使用的终结点名称、所有者活动的名称和 Type 表示协定类型的对象。
public:
static System::Collections::Generic::IDictionary<System::String ^, System::String ^> ^ GetContext(System::Workflow::ComponentModel::Activity ^ activity, System::String ^ endpointName, System::String ^ ownerActivityName, Type ^ contractType);
public static System.Collections.Generic.IDictionary<string,string> GetContext(System.Workflow.ComponentModel.Activity activity, string endpointName, string ownerActivityName, Type contractType);
static member GetContext : System.Workflow.ComponentModel.Activity * string * string * Type -> System.Collections.Generic.IDictionary<string, string>
Public Shared Function GetContext (activity As Activity, endpointName As String, ownerActivityName As String, contractType As Type) As IDictionary(Of String, String)
参数
- activity
- Activity
需要其上下文信息的活动。
- endpointName
- String
用于与服务关联的终结点的名称。
- ownerActivityName
- String
拥有活动的名称。
返回
一个基于字典的集合,其中包含 XmlQualifiedName 键及其关联的 String 值。
注解
上下文信息用于客户端与其通信的服务之间的通信,并包括相关标识等内容。