Expression.GetActionType(Type[]) 方法

定義

Type建立 物件,此物件表示具有特定型別引數的泛型 Action 委派型別。

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

參數

typeArgs
Type[]

最多包含十六個 Type 物件的陣列,指定 Action 委派類型的類型引數。

傳回

具有指定型別引數的 Action 委派型別。

例外狀況

typeArgs 包含十六個以上的項目。

typeArgsnull

備註

例如,如果 的 typeArgs 元素代表型 T1…Tn 別 ,則產生的 Type 物件代表 C# 或 System.Action(Of T1,…,Tn) Visual Basic 中建構的委派型 System.Action<T1,…,Tn> 別。

適用於