Expression.GetActionType(Type[]) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.