ModelMetadata.IsEnum 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得值,指出 是否 UnderlyingOrModelType 為 Enum 。
public:
abstract property bool IsEnum { bool get(); };
public abstract bool IsEnum { get; }
member this.IsEnum : bool
Public MustOverride ReadOnly Property IsEnum As Boolean
屬性值
true 如果 type.IsEnum DNX Core 5.0) 的 (type.GetTypeInfo().IsEnum 為 true ,則為 UnderlyingOrModelType , false 否則為 。