Skip to main content
.NET Framework 4.6.2+

NullValueAttribute Constructors

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