ActivityAction<T1,T2,T3,T4> Class

Definition

定义一个具有四个 In 自变量并且不返回值的活动委托。Defines an activity delegate that has four in arguments and does not return a value.

generic <typename T1, typename T2, typename T3, typename T4>
public ref class ActivityAction sealed : System::Activities::ActivityDelegate
public sealed class ActivityAction<T1,T2,T3,T4> : System.Activities.ActivityDelegate
type ActivityAction<'T1, 'T2, 'T3, 'T4> = class
    inherit ActivityDelegate
Public NotInheritable Class ActivityAction(Of T1, T2, T3, T4)
Inherits ActivityDelegate

Type Parameters

T1

活动委托的第一个 In 自变量的类型。The type of the first in argument of the activity delegate.

T2

活动委托的第二个 In 自变量的类型。The type of the second in argument of the activity delegate.

T3

活动委托的第三个 In 自变量的类型。The type of the third in argument of the activity delegate.

T4

活动委托的第四个 In 自变量的类型。The type of the fourth in argument of the activity delegate.

Inheritance
ActivityAction<T1,T2,T3,T4>

Remarks

活动委托允许开发人员定义第三方在访问活动时需要指定的签名。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.

Constructors

ActivityAction<T1,T2,T3,T4>()

创建 ActivityAction<T1,T2,T3,T4> 类的新实例。Creates a new instance of the ActivityAction<T1,T2,T3,T4> class.

Properties

Argument1

获取或设置活动委托的第一个 In 自变量。Gets or sets the first in argument of the activity delegate.

Argument2

获取或设置活动委托的第二个 In 自变量。Gets or sets the second in argument of the activity delegate.

Argument3

获取或设置活动委托的第三个 In 自变量。Gets or sets the third in argument of the activity delegate.

Argument4

获取或设置活动委托的第四个 In 自变量。Gets or sets the fourth in argument of the activity delegate.

DisplayName

获取或设置用于调试、验证、异常处理和跟踪的可选友好名称。Gets or sets an optional friendly name that is used for debugging, validation, exception handling, and tracking.

(Inherited from ActivityDelegate)
Handler

获取或设置由此 ActivityDelegate 表示的活动。Gets or sets the activity that is represented by this ActivityDelegate.

(Inherited from ActivityDelegate)

Methods

Equals(Object)

确定指定的对象是否等于当前对象。Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode()

作为默认哈希函数。Serves as the default hash function.

(Inherited from Object)
GetResultArgument()

在派生类中实现时,返回 DelegateOutArgumentActivityDelegateWhen implemented in a derived class, returns the DelegateOutArgument of the ActivityDelegate.

(Inherited from ActivityDelegate)
GetType()

获取当前实例的 TypeGets the Type of the current instance.

(Inherited from Object)
MemberwiseClone()

创建当前 Object 的浅表副本。Creates a shallow copy of the current Object.

(Inherited from Object)
OnGetRuntimeDelegateArguments(IList<RuntimeDelegateArgument>)

提供 ActivityDelegate 的运行时自变量列表。Supplies a list of runtime arguments for the ActivityDelegate.

(Inherited from ActivityDelegate)
ShouldSerializeDisplayName()

指示 DisplayName 属性值是否应序列化为 XAML。Indicates whether the DisplayName property value should be serialized to XAML.

(Inherited from ActivityDelegate)
ToString()

返回包含 StringActivityDelegateDisplayName 表示形式。Returns a String representation of the ActivityDelegate that contains the DisplayName.

(Inherited from ActivityDelegate)

Applies to

See also