ActivityAction<T> 类
定义
定义一个具有一个 In 自变量并且不返回值的活动委托。Defines an activity delegate that has one in argument and does not return a value.
generic <typename T>
public ref class ActivityAction sealed : System::Activities::ActivityDelegate
public sealed class ActivityAction<T> : System.Activities.ActivityDelegate
type ActivityAction<'T> = class
inherit ActivityDelegate
Public NotInheritable Class ActivityAction(Of T)
Inherits ActivityDelegate
类型参数
- T
活动委托的 In 自变量的类型。The type of the in argument of the activity delegate.
- 继承
注解
活动委托允许开发人员定义第三方在访问活动时需要指定的签名。An activity delegate allows a developer to define the required signature of an activity that will be specified by a third party.
此类型具有多个泛型版本,这些版本对所调用的活动采用 1 到 16 个参数。There are multiple generic versions of this type that take from 1 to 16 arguments for the activity that is called. 对于返回值的活动委托,还有 ActivityFunc 类型。There are also ActivityFunc types for activity delegates that return values.
构造函数
| ActivityAction<T>() |
创建 ActivityAction<T> 类的新实例。Creates a new instance of the ActivityAction<T> class. |
属性
| Argument |
获取或设置活动委托的 In 自变量。Gets or sets the in argument of the activity delegate. |
| DisplayName |
获取或设置用于调试、验证、异常处理和跟踪的可选友好名称。Gets or sets an optional friendly name that is used for debugging, validation, exception handling, and tracking. (继承自 ActivityDelegate) |
| Handler |
获取或设置由此 ActivityDelegate 表示的活动。Gets or sets the activity that is represented by this ActivityDelegate. (继承自 ActivityDelegate) |
方法
| Equals(Object) |
确定指定对象是否等于当前对象。Determines whether the specified object is equal to the current object. (继承自 Object) |
| GetHashCode() |
作为默认哈希函数。Serves as the default hash function. (继承自 Object) |
| GetResultArgument() |
在派生类中实现时,返回 DelegateOutArgument 的 ActivityDelegate。When implemented in a derived class, returns the DelegateOutArgument of the ActivityDelegate. (继承自 ActivityDelegate) |
| GetType() |
获取当前实例的 Type。Gets the Type of the current instance. (继承自 Object) |
| MemberwiseClone() |
创建当前 Object 的浅表副本。Creates a shallow copy of the current Object. (继承自 Object) |
| OnGetRuntimeDelegateArguments(IList<RuntimeDelegateArgument>) |
提供 ActivityDelegate 的运行时自变量列表。Supplies a list of runtime arguments for the ActivityDelegate. (继承自 ActivityDelegate) |
| ShouldSerializeDisplayName() |
指示 DisplayName 属性值是否应序列化为 XAML。Indicates whether the DisplayName property value should be serialized to XAML. (继承自 ActivityDelegate) |
| ToString() |
返回包含 String 的 ActivityDelegate 的 DisplayName 表示形式。Returns a String representation of the ActivityDelegate that contains the DisplayName. (继承自 ActivityDelegate) |
适用于
另请参阅
- ActivityAction<T1,T2>
- ActivityAction<T1,T2,T3>
- ActivityAction<T1,T2,T3,T4>
- ActivityAction<T1,T2,T3,T4,T5>
- ActivityAction<T1,T2,T3,T4,T5,T6>
- ActivityAction<T1,T2,T3,T4,T5,T6,T7>
- ActivityAction<T1,T2,T3,T4,T5,T6,T7,T8>
- ActivityAction<T1,T2,T3,T4,T5,T6,T7,T8,T9>
- ActivityAction<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10>
- ActivityAction<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11>
- ActivityAction<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12>
- ActivityAction<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13>
- ActivityAction<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14>
- ActivityAction<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15>
- ActivityAction<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15,T16>