Class NullValueAttribute
- Namespace
- DevExpress.Xpo
- Assembly
- DevExpress.Xpo.v24.1.dll
Associates a constant with the null value of a property or a field of a simple type.
[AttributeUsage(AttributeTargets.Property|AttributeTargets.Field, Inherited = true)]
public sealed class NullValueAttribute : Attribute
- Inheritance
-
NullValueAttribute
- Inherited Members
Constructors
NullValueAttribute(bool)
Initializes a new instance of the NullValueAttribute class with the specified Boolean constant.
public NullValueAttribute(bool value)
Parameters
value
boolA bool value which is associated with a null value for a property or a field. This value is assigned to the NullValueAttribute.Value property.
NullValueAttribute(byte)
Initializes a new instance of the NullValueAttribute class with the specified 8-bit unsigned integer constant.
public NullValueAttribute(byte value)
Parameters
value
byteA byte value which is associated with a null value for a property or a field. This value is assigned to the NullValueAttribute.Value property.
NullValueAttribute(char)
Initializes a new instance of the NullValueAttribute class with the specified Unicode character constant.
public NullValueAttribute(char value)
Parameters
value
charA char value which is associated with a null value for a property or a field. This value is assigned to the NullValueAttribute.Value property.
NullValueAttribute(double)
Initializes a new instance of the NullValueAttribute class with the specified double-precision floating point number constant.
public NullValueAttribute(double value)
Parameters
value
doubleA double value which is associated with a null value for a property or a field. This value is assigned to the NullValueAttribute.Value property.
NullValueAttribute(short)
Initializes a new instance of the NullValueAttribute class with the specified 16-bit signed integer constant.
public NullValueAttribute(short value)
Parameters
value
shortA short value which is associated with a null value for a property or a field. This value is assigned to the NullValueAttribute.Value property.
NullValueAttribute(int)
Initializes a new instance of the NullValueAttribute class with the specified 32-bit signed integer constant.
public NullValueAttribute(int value)
Parameters
value
intA int value associated with a null value for a property or a field. This value is assigned to the NullValueAttribute.Value property.
NullValueAttribute(long)
Initializes a new instance of the NullValueAttribute class with the specified 64-bit signed integer constant.
public NullValueAttribute(long value)
Parameters
value
longA long value which is associated with a null value for a property or a field. This value is assigned to the NullValueAttribute.Value property.
NullValueAttribute(object)
Initializes a new instance of the NullValueAttribute class with the object type constant.
public NullValueAttribute(object value)
Parameters
value
objectA object value which is associated with a null value for a property or a field. This value is assigned to the NullValueAttribute.Value property.
NullValueAttribute(float)
Initializes a new instance of the NullValueAttribute class with the specified single-precision floating point number constant.
public NullValueAttribute(float value)
Parameters
value
floatA float value which is associated with a null value for a property or a field. This value is assigned to the NullValueAttribute.Value property.
NullValueAttribute(string)
Initializes a new instance of the NullValueAttribute class with the specified string constant.
public NullValueAttribute(string value)
Parameters
value
stringA string value which is associated with a null value for a property or a field. This value is assigned to the NullValueAttribute.Value property.
NullValueAttribute(Type, string)
Initializes a new instance of the NullValueAttribute class and converts the specified value into the specified type.
public NullValueAttribute(Type type, string value)
Parameters
type
TypeA Type which represents the type that the value associated with the null value of a property or a field is converted to.
value
stringA string value which is converted into the specified type. This value is assigned to the NullValueAttribute.Value property.
Properties
Value
Gets or sets a null value for a property or a field.
public object Value { get; set; }