ModelMetadata.IsEnum 屬性

定義

取得值,指出 是否 UnderlyingOrModelTypeEnum

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().IsEnumtrue ,則為 UnderlyingOrModelTypefalse 否則為 。

適用於