DefaultValueAttribute DefaultValueAttribute DefaultValueAttribute DefaultValueAttribute Constructors

Definition

Overloads

DefaultValueAttribute(Boolean) DefaultValueAttribute(Boolean) DefaultValueAttribute(Boolean) DefaultValueAttribute(Boolean)

Initializes a new instance of the DefaultValueAttribute class using a Boolean value.

DefaultValueAttribute(Type, String) DefaultValueAttribute(Type, String) DefaultValueAttribute(Type, String)

Initializes a new instance of the DefaultValueAttribute class, converting the specified value to the specified type, and using an invariant culture as the translation context.

DefaultValueAttribute(UInt64) DefaultValueAttribute(UInt64) DefaultValueAttribute(UInt64) DefaultValueAttribute(UInt64)

Initializes a new instance of the DefaultValueAttribute class using a UInt64 value.

DefaultValueAttribute(UInt32) DefaultValueAttribute(UInt32) DefaultValueAttribute(UInt32) DefaultValueAttribute(UInt32)

Initializes a new instance of the DefaultValueAttribute class using a UInt32 value.

DefaultValueAttribute(UInt16) DefaultValueAttribute(UInt16) DefaultValueAttribute(UInt16) DefaultValueAttribute(UInt16)

Initializes a new instance of the DefaultValueAttribute class using a UInt16 value.

DefaultValueAttribute(String) DefaultValueAttribute(String) DefaultValueAttribute(String) DefaultValueAttribute(String)

Initializes a new instance of the DefaultValueAttribute class using a String.

DefaultValueAttribute(SByte) DefaultValueAttribute(SByte) DefaultValueAttribute(SByte) DefaultValueAttribute(SByte)

Initializes a new instance of the DefaultValueAttribute class using a SByte value.

DefaultValueAttribute(Single) DefaultValueAttribute(Single) DefaultValueAttribute(Single) DefaultValueAttribute(Single)

Initializes a new instance of the DefaultValueAttribute class using a single-precision floating point number.

DefaultValueAttribute(Int64) DefaultValueAttribute(Int64) DefaultValueAttribute(Int64) DefaultValueAttribute(Int64)

Initializes a new instance of the DefaultValueAttribute class using a 64-bit signed integer.

DefaultValueAttribute(Int32) DefaultValueAttribute(Int32) DefaultValueAttribute(Int32) DefaultValueAttribute(Int32)

Initializes a new instance of the DefaultValueAttribute class using a 32-bit signed integer.

DefaultValueAttribute(Int16) DefaultValueAttribute(Int16) DefaultValueAttribute(Int16) DefaultValueAttribute(Int16)

Initializes a new instance of the DefaultValueAttribute class using a 16-bit signed integer.

DefaultValueAttribute(Double) DefaultValueAttribute(Double) DefaultValueAttribute(Double) DefaultValueAttribute(Double)

Initializes a new instance of the DefaultValueAttribute class using a double-precision floating point number.

DefaultValueAttribute(Char) DefaultValueAttribute(Char) DefaultValueAttribute(Char) DefaultValueAttribute(Char)

Initializes a new instance of the DefaultValueAttribute class using a Unicode character.

DefaultValueAttribute(Byte) DefaultValueAttribute(Byte) DefaultValueAttribute(Byte) DefaultValueAttribute(Byte)

Initializes a new instance of the DefaultValueAttribute class using an 8-bit unsigned integer.

DefaultValueAttribute(Object) DefaultValueAttribute(Object) DefaultValueAttribute(Object) DefaultValueAttribute(Object)

Initializes a new instance of the DefaultValueAttribute class.

DefaultValueAttribute(Boolean) DefaultValueAttribute(Boolean) DefaultValueAttribute(Boolean) DefaultValueAttribute(Boolean)

Initializes a new instance of the DefaultValueAttribute class using a Boolean value.

public:
 DefaultValueAttribute(bool value);
public DefaultValueAttribute (bool value);
new System.ComponentModel.DefaultValueAttribute : bool -> System.ComponentModel.DefaultValueAttribute
Public Sub New (value As Boolean)

Parameters

value
Boolean Boolean Boolean Boolean

A Boolean that is the default value.

DefaultValueAttribute(Type, String) DefaultValueAttribute(Type, String) DefaultValueAttribute(Type, String)

Initializes a new instance of the DefaultValueAttribute class, converting the specified value to the specified type, and using an invariant culture as the translation context.

public:
 DefaultValueAttribute(Type ^ type, System::String ^ value);
public DefaultValueAttribute (Type type, string value);
new System.ComponentModel.DefaultValueAttribute : Type * string -> System.ComponentModel.DefaultValueAttribute

Parameters

type
Type Type Type Type

A Type that represents the type to convert the value to.

value
String String String String

A String that can be converted to the type using the TypeConverter for the type and the U.S. English culture.

DefaultValueAttribute(UInt64) DefaultValueAttribute(UInt64) DefaultValueAttribute(UInt64) DefaultValueAttribute(UInt64)

Important

This API is not CLS-compliant.

Initializes a new instance of the DefaultValueAttribute class using a UInt64 value.

public:
 DefaultValueAttribute(System::UInt64 value);
[System.CLSCompliant(false)]
public DefaultValueAttribute (ulong value);
new System.ComponentModel.DefaultValueAttribute : uint64 -> System.ComponentModel.DefaultValueAttribute
Public Sub New (value As ULong)

Parameters

value
UInt64 UInt64 UInt64 UInt64

The default unsigned long integer value.

DefaultValueAttribute(UInt32) DefaultValueAttribute(UInt32) DefaultValueAttribute(UInt32) DefaultValueAttribute(UInt32)

Important

This API is not CLS-compliant.

Initializes a new instance of the DefaultValueAttribute class using a UInt32 value.

public:
 DefaultValueAttribute(System::UInt32 value);
[System.CLSCompliant(false)]
public DefaultValueAttribute (uint value);
new System.ComponentModel.DefaultValueAttribute : uint32 -> System.ComponentModel.DefaultValueAttribute
Public Sub New (value As UInteger)

Parameters

value
UInt32 UInt32 UInt32 UInt32

The default unsigned integer value.

DefaultValueAttribute(UInt16) DefaultValueAttribute(UInt16) DefaultValueAttribute(UInt16) DefaultValueAttribute(UInt16)

Important

This API is not CLS-compliant.

Initializes a new instance of the DefaultValueAttribute class using a UInt16 value.

public:
 DefaultValueAttribute(System::UInt16 value);
[System.CLSCompliant(false)]
public DefaultValueAttribute (ushort value);
new System.ComponentModel.DefaultValueAttribute : uint16 -> System.ComponentModel.DefaultValueAttribute
Public Sub New (value As UShort)

Parameters

value
UInt16 UInt16 UInt16 UInt16

The default unsigned 16-bit integer value.

DefaultValueAttribute(String) DefaultValueAttribute(String) DefaultValueAttribute(String) DefaultValueAttribute(String)

Initializes a new instance of the DefaultValueAttribute class using a String.

public:
 DefaultValueAttribute(System::String ^ value);
public DefaultValueAttribute (string value);
new System.ComponentModel.DefaultValueAttribute : string -> System.ComponentModel.DefaultValueAttribute
Public Sub New (value As String)

Parameters

value
String String String String

A String that is the default value.

DefaultValueAttribute(SByte) DefaultValueAttribute(SByte) DefaultValueAttribute(SByte) DefaultValueAttribute(SByte)

Important

This API is not CLS-compliant.

Initializes a new instance of the DefaultValueAttribute class using a SByte value.

public:
 DefaultValueAttribute(System::SByte value);
[System.CLSCompliant(false)]
public DefaultValueAttribute (sbyte value);
new System.ComponentModel.DefaultValueAttribute : sbyte -> System.ComponentModel.DefaultValueAttribute
Public Sub New (value As SByte)

Parameters

value
SByte SByte SByte SByte

The default signed byte value.

DefaultValueAttribute(Single) DefaultValueAttribute(Single) DefaultValueAttribute(Single) DefaultValueAttribute(Single)

Initializes a new instance of the DefaultValueAttribute class using a single-precision floating point number.

public:
 DefaultValueAttribute(float value);
public DefaultValueAttribute (float value);
new System.ComponentModel.DefaultValueAttribute : single -> System.ComponentModel.DefaultValueAttribute
Public Sub New (value As Single)

Parameters

value
Single Single Single Single

A single-precision floating point number that is the default value.

DefaultValueAttribute(Int64) DefaultValueAttribute(Int64) DefaultValueAttribute(Int64) DefaultValueAttribute(Int64)

Initializes a new instance of the DefaultValueAttribute class using a 64-bit signed integer.

public:
 DefaultValueAttribute(long value);
public DefaultValueAttribute (long value);
new System.ComponentModel.DefaultValueAttribute : int64 -> System.ComponentModel.DefaultValueAttribute
Public Sub New (value As Long)

Parameters

value
Int64 Int64 Int64 Int64

A 64-bit signed integer that is the default value.

DefaultValueAttribute(Int32) DefaultValueAttribute(Int32) DefaultValueAttribute(Int32) DefaultValueAttribute(Int32)

Initializes a new instance of the DefaultValueAttribute class using a 32-bit signed integer.

public:
 DefaultValueAttribute(int value);
public DefaultValueAttribute (int value);
new System.ComponentModel.DefaultValueAttribute : int -> System.ComponentModel.DefaultValueAttribute
Public Sub New (value As Integer)

Parameters

value
Int32 Int32 Int32 Int32

A 32-bit signed integer that is the default value.

DefaultValueAttribute(Int16) DefaultValueAttribute(Int16) DefaultValueAttribute(Int16) DefaultValueAttribute(Int16)

Initializes a new instance of the DefaultValueAttribute class using a 16-bit signed integer.

public:
 DefaultValueAttribute(short value);
public DefaultValueAttribute (short value);
new System.ComponentModel.DefaultValueAttribute : int16 -> System.ComponentModel.DefaultValueAttribute
Public Sub New (value As Short)

Parameters

value
Int16 Int16 Int16 Int16

A 16-bit signed integer that is the default value.

DefaultValueAttribute(Double) DefaultValueAttribute(Double) DefaultValueAttribute(Double) DefaultValueAttribute(Double)

Initializes a new instance of the DefaultValueAttribute class using a double-precision floating point number.

public:
 DefaultValueAttribute(double value);
public DefaultValueAttribute (double value);
new System.ComponentModel.DefaultValueAttribute : double -> System.ComponentModel.DefaultValueAttribute
Public Sub New (value As Double)

Parameters

value
Double Double Double Double

A double-precision floating point number that is the default value.

DefaultValueAttribute(Char) DefaultValueAttribute(Char) DefaultValueAttribute(Char) DefaultValueAttribute(Char)

Initializes a new instance of the DefaultValueAttribute class using a Unicode character.

public:
 DefaultValueAttribute(char value);
public DefaultValueAttribute (char value);
new System.ComponentModel.DefaultValueAttribute : char -> System.ComponentModel.DefaultValueAttribute
Public Sub New (value As Char)

Parameters

value
Char Char Char Char

A Unicode character that is the default value.

DefaultValueAttribute(Byte) DefaultValueAttribute(Byte) DefaultValueAttribute(Byte) DefaultValueAttribute(Byte)

Initializes a new instance of the DefaultValueAttribute class using an 8-bit unsigned integer.

public:
 DefaultValueAttribute(System::Byte value);
public DefaultValueAttribute (byte value);
new System.ComponentModel.DefaultValueAttribute : byte -> System.ComponentModel.DefaultValueAttribute
Public Sub New (value As Byte)

Parameters

value
Byte Byte Byte Byte

An 8-bit unsigned integer that is the default value.

DefaultValueAttribute(Object) DefaultValueAttribute(Object) DefaultValueAttribute(Object) DefaultValueAttribute(Object)

Initializes a new instance of the DefaultValueAttribute class.

public:
 DefaultValueAttribute(System::Object ^ value);
public DefaultValueAttribute (object value);
new System.ComponentModel.DefaultValueAttribute : obj -> System.ComponentModel.DefaultValueAttribute
Public Sub New (value As Object)

Parameters

value
Object Object Object Object

An Object that represents the default value.

Applies to