CorrelationScope.CorrelatesWith 属性

定义

获取或设置子消息传递活动使用的 CorrelationHandleGets or sets the CorrelationHandle used by the child messaging activities.

public:
 property System::Activities::InArgument<System::ServiceModel::Activities::CorrelationHandle ^> ^ CorrelatesWith { System::Activities::InArgument<System::ServiceModel::Activities::CorrelationHandle ^> ^ get(); void set(System::Activities::InArgument<System::ServiceModel::Activities::CorrelationHandle ^> ^ value); };
public System.Activities.InArgument<System.ServiceModel.Activities.CorrelationHandle> CorrelatesWith { get; set; }
member this.CorrelatesWith : System.Activities.InArgument<System.ServiceModel.Activities.CorrelationHandle> with get, set
Public Property CorrelatesWith As InArgument(Of CorrelationHandle)

属性值

InArgument<CorrelationHandle>

子消息传递活动使用的相关句柄。The correlation handle used by the child messaging activities.

注解

此属性在运行时为只读。This property is read-only at runtime. 如果在运行时设置值,则会引发 InvalidOperationExceptionIf the value is set at runtime, an InvalidOperationException is thrown.

如果存在,则运行时使用 CorrelationHandle 进行关联,否则将使用消息传递活动的 CorrelatesWith 属性。The runtime uses the CorrelationHandle for correlation if it is present, otherwise the CorrelatesWith property of the messaging activity will be used. 如果二者都不存在,则将使用 CorrelationScope 提供的环境句柄或工作流服务。If both are absent, the ambient handle provided by CorrelationScope or the workflow service is used.

适用于