TransactionScope.Body 属性
定义
获取或设置在 TransactionScope 执行时安排的活动。Gets or sets the activity that is scheduled when the TransactionScope executes.
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 执行时安排的活动。The activity that is scheduled when the TransactionScope executes.
注解
此属性在运行时为只读。This property is read-only at runtime. 如果在运行时设置值,则会引发 InvalidOperationException。If the value is set at runtime an InvalidOperationException is thrown.