Partager via


ModelMetadata.IsNullableValueType Property

Gets a value that indicates whether the type is nullable.

Namespace:  System.Web.Mvc
Assembly:  System.Web.Mvc (in System.Web.Mvc.dll)

Syntax

'Declaration
Public ReadOnly Property IsNullableValueType As Boolean
    Get
public bool IsNullableValueType { get; }
public:
property bool IsNullableValueType {
    bool get ();
}

Property Value

Type: System.Boolean
true if the type is nullable; otherwise, false.

See Also

Reference

ModelMetadata Class

System.Web.Mvc Namespace