संपादित करें

इसके माध्यम से साझा किया गया


Expression.GetActionType(Type[]) Method

Definition

Creates a Type object that represents a generic Action delegate type that has specific type arguments.

public:
 static Type ^ GetActionType(... cli::array <Type ^> ^ typeArgs);
public static Type GetActionType (params Type[] typeArgs);
public static Type GetActionType (params Type[]? typeArgs);
static member GetActionType : Type[] -> Type
Public Shared Function GetActionType (ParamArray typeArgs As Type()) As Type

Parameters

typeArgs
Type[]

An array of up to sixteen Type objects that specify the type arguments for the Action delegate type.

Returns

The type of a Action delegate that has the specified type arguments.

Exceptions

typeArgs contains more than sixteen elements.

typeArgs is null.

Remarks

As an example, if the elements of typeArgs represent the types T1…Tn, the resulting Type object represents the constructed delegate type System.Action<T1,…,Tn> in C# or System.Action(Of T1,…,Tn) in Visual Basic.

Applies to