共用方式為


ModelMetadata.IsNullableValueType 屬性

定義

取得值,這個值指定模型是否可為 null 的實值型別。

public:
 property bool IsNullableValueType { bool get(); };
public bool IsNullableValueType { get; }
member this.IsNullableValueType : bool
Public ReadOnly Property IsNullableValueType As Boolean

屬性值

如果模型是可為 null 的實值型別,則為 true,否則為 false

適用於