TransactionScope.Body 属性

定义

获取或设置在 TransactionScope 执行时安排的活动。

public:
 property System::Activities::Activity ^ Body { System::Activities::Activity ^ get(); void set(System::Activities::Activity ^ value); };
public System.Activities.Activity Body { get; set; }
member this.Body : System.Activities.Activity with get, set
Public Property Body As Activity

属性值

TransactionScope 执行时安排的活动。

注解

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

适用于