Share via


TypeProvider.IsEnum(Type) 方法

定義

指示 Type 的型別是否為 Enum

public:
 static bool IsEnum(Type ^ type);
public static bool IsEnum (Type type);
static member IsEnum : Type -> bool
Public Shared Function IsEnum (type As Type) As Boolean

參數

type
Type

要測試的 Type

傳回

Boolean

如果 trueType,則為 Enum,否則為 false

例外狀況

type 為 null 參考 (在 Visual Basic 中為 Nothing)。

適用於