Expression.TryGetActionType(Type[], Type) Expression.TryGetActionType(Type[], Type) Expression.TryGetActionType(Type[], Type) Expression.TryGetActionType(Type[], Type) Method

Definition

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

public:
 static bool TryGetActionType(cli::array <Type ^> ^ typeArgs, [Runtime::InteropServices::Out] Type ^ % actionType);
public static bool TryGetActionType (Type[] typeArgs, out Type actionType);
static member TryGetActionType : Type[] * Type -> bool
Public Shared Function TryGetActionType (typeArgs As Type(), ByRef actionType As Type) As Boolean

Parameters

typeArgs
Type[]

An array of Type objects that specify the type arguments for the System.Action delegate type.

actionType
Type Type Type Type

When this method returns, contains the generic System.Action delegate type that has specific type arguments. Contains null if there is no generic System.Action delegate that matches the typeArgs.This parameter is passed uninitialized.

Returns

true if generic System.Action delegate type was created for specific typeArgs; otherwise, false.

Applies to