Uređivanje

Dijeli putem


DefaultValueAttribute Constructors

Definition

Initializes a new instance of the DefaultValueAttribute class.

Overloads

DefaultValueAttribute(Boolean)

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

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)

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

DefaultValueAttribute(UInt32)

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

DefaultValueAttribute(UInt16)

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

DefaultValueAttribute(String)

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

DefaultValueAttribute(SByte)

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

DefaultValueAttribute(Single)

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

DefaultValueAttribute(Int64)

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

DefaultValueAttribute(Int32)

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

DefaultValueAttribute(Int16)

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

DefaultValueAttribute(Double)

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

DefaultValueAttribute(Char)

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

DefaultValueAttribute(Byte)

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

DefaultValueAttribute(Object)

Initializes a new instance of the DefaultValueAttribute class.

DefaultValueAttribute(Boolean)

Source:
DefaultValueAttribute.cs
Source:
DefaultValueAttribute.cs
Source:
DefaultValueAttribute.cs

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

A Boolean that is the default value.

Applies to

DefaultValueAttribute(Type, String)

Source:
DefaultValueAttribute.cs
Source:
DefaultValueAttribute.cs
Source:
DefaultValueAttribute.cs

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);
public DefaultValueAttribute (Type type, string? value);
new System.ComponentModel.DefaultValueAttribute : Type * string -> System.ComponentModel.DefaultValueAttribute
Public Sub New (type As Type, value As String)

Parameters

type
Type

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

value
String

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

Applies to

DefaultValueAttribute(UInt64)

Source:
DefaultValueAttribute.cs
Source:
DefaultValueAttribute.cs
Source:
DefaultValueAttribute.cs

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);
[<System.CLSCompliant(false)>]
new System.ComponentModel.DefaultValueAttribute : uint64 -> System.ComponentModel.DefaultValueAttribute
Public Sub New (value As ULong)

Parameters

value
UInt64

The default unsigned long integer value.

Attributes

Applies to

DefaultValueAttribute(UInt32)

Source:
DefaultValueAttribute.cs
Source:
DefaultValueAttribute.cs
Source:
DefaultValueAttribute.cs

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);
[<System.CLSCompliant(false)>]
new System.ComponentModel.DefaultValueAttribute : uint32 -> System.ComponentModel.DefaultValueAttribute
Public Sub New (value As UInteger)

Parameters

value
UInt32

The default unsigned integer value.

Attributes

Applies to

DefaultValueAttribute(UInt16)

Source:
DefaultValueAttribute.cs
Source:
DefaultValueAttribute.cs
Source:
DefaultValueAttribute.cs

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);
[<System.CLSCompliant(false)>]
new System.ComponentModel.DefaultValueAttribute : uint16 -> System.ComponentModel.DefaultValueAttribute
Public Sub New (value As UShort)

Parameters

value
UInt16

The default unsigned 16-bit integer value.

Attributes

Applies to

DefaultValueAttribute(String)

Source:
DefaultValueAttribute.cs
Source:
DefaultValueAttribute.cs
Source:
DefaultValueAttribute.cs

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

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

Parameters

value
String

A String that is the default value.

Applies to

DefaultValueAttribute(SByte)

Source:
DefaultValueAttribute.cs
Source:
DefaultValueAttribute.cs
Source:
DefaultValueAttribute.cs

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);
[<System.CLSCompliant(false)>]
new System.ComponentModel.DefaultValueAttribute : sbyte -> System.ComponentModel.DefaultValueAttribute
Public Sub New (value As SByte)

Parameters

value
SByte

The default signed byte value.

Attributes

Applies to

DefaultValueAttribute(Single)

Source:
DefaultValueAttribute.cs
Source:
DefaultValueAttribute.cs
Source:
DefaultValueAttribute.cs

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

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

Applies to

DefaultValueAttribute(Int64)

Source:
DefaultValueAttribute.cs
Source:
DefaultValueAttribute.cs
Source:
DefaultValueAttribute.cs

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

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

Applies to

DefaultValueAttribute(Int32)

Source:
DefaultValueAttribute.cs
Source:
DefaultValueAttribute.cs
Source:
DefaultValueAttribute.cs

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

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

Applies to

DefaultValueAttribute(Int16)

Source:
DefaultValueAttribute.cs
Source:
DefaultValueAttribute.cs
Source:
DefaultValueAttribute.cs

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

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

Applies to

DefaultValueAttribute(Double)

Source:
DefaultValueAttribute.cs
Source:
DefaultValueAttribute.cs
Source:
DefaultValueAttribute.cs

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

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

Applies to

DefaultValueAttribute(Char)

Source:
DefaultValueAttribute.cs
Source:
DefaultValueAttribute.cs
Source:
DefaultValueAttribute.cs

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

A Unicode character that is the default value.

Applies to

DefaultValueAttribute(Byte)

Source:
DefaultValueAttribute.cs
Source:
DefaultValueAttribute.cs
Source:
DefaultValueAttribute.cs

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

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

Applies to

DefaultValueAttribute(Object)

Source:
DefaultValueAttribute.cs
Source:
DefaultValueAttribute.cs
Source:
DefaultValueAttribute.cs

Initializes a new instance of the DefaultValueAttribute class.

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

Parameters

value
Object

An Object that represents the default value.

Applies to