CorrelationScope.CorrelatesWith 属性

定义

获取或设置子消息传递活动使用的 CorrelationHandle

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>

子消息传递活动使用的相关句柄。

注解

此属性在运行时为只读。 如果在运行时设置值,则会引发 InvalidOperationException

运行时使用 CorrelationHandle 关联(如果存在),否则将使用消息传送活动的 CorrelatesWith 属性。 如果二者都不存在,则将使用 CorrelationScope 提供的环境句柄或工作流服务。

适用于