Skip to main content
A newer version of this page is available. .

NullValueAttribute Constructors

Associates a constant with the null value of a property or a field of a simple type.
Name Parameters Description
NullValueAttribute(Boolean) value Initializes a new instance of the NullValueAttribute class with the specified Boolean constant.
NullValueAttribute(Byte) value Initializes a new instance of the NullValueAttribute class with the specified 8-bit unsigned integer constant.
NullValueAttribute(Char) value Initializes a new instance of the NullValueAttribute class with the specified Unicode character constant.
NullValueAttribute(Double) value Initializes a new instance of the NullValueAttribute class with the specified double-precision floating point number constant.
NullValueAttribute(Int16) value Initializes a new instance of the NullValueAttribute class with the specified 16-bit signed integer constant.
NullValueAttribute(Int32) value Initializes a new instance of the NullValueAttribute class with the specified 32-bit signed integer constant.
NullValueAttribute(Int64) value Initializes a new instance of the NullValueAttribute class with the specified 64-bit signed integer constant.
NullValueAttribute(Object) value Initializes a new instance of the NullValueAttribute class with the object type constant.
NullValueAttribute(Single) value Initializes a new instance of the NullValueAttribute class with the specified single-precision floating point number constant.
NullValueAttribute(String) value Initializes a new instance of the NullValueAttribute class with the specified string constant.
NullValueAttribute(Type, String) type, value Initializes a new instance of the NullValueAttribute class and converts the specified value into the specified type.
See Also