CompensateActivity.TargetActivityName 属性

定义

获取或设置要补偿的 Activity 的名称。Gets or sets the name of the Activity to compensate.

public:
 property System::String ^ TargetActivityName { System::String ^ get(); void set(System::String ^ value); };
[System.ComponentModel.TypeConverter(typeof(System.Workflow.ComponentModel.Design.PropertyValueProviderTypeConverter))]
public string TargetActivityName { get; set; }
[<System.ComponentModel.TypeConverter(typeof(System.Workflow.ComponentModel.Design.PropertyValueProviderTypeConverter))>]
member this.TargetActivityName : string with get, set
Public Property TargetActivityName As String

属性值

String

一个字符串,其中包含要补偿的 Activity 的名称。A string that contains the name of the Activity to compensate.

属性

示例

下面的示例演示如何访问 TargetActivityName 属性。The following example demonstrates accessing the TargetActivityName property. 此示例摘自“补偿 SDK”示例。This sample is from the Compensation SDK sample. 有关详细信息,请参阅 补偿示例For more information, see Compensation Sample.

this.CompensateRefund.TargetActivityName = "OrderScope";
Me.CompensateRefund.TargetActivityName = "OrderScope"

适用于