語言

TypeProvider.IsEnum(Type) 方法

定義

表示 a 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這些都待測試。

傳回

true 若 是 TypeEnum ;否則 false。

例外狀況

是一個空參考()。

適用於