DesignerDataColumn Constructors

Definition

Initializes a new instance of the DesignerDataColumn class.

Overloads

DesignerDataColumn(String, DbType)

Initializes a new instance of the DesignerDataColumn class with the specified name and data type.

DesignerDataColumn(String, DbType, Object)

Initializes a new instance of the DesignerDataColumn class with the specified name, data type, and default value.

DesignerDataColumn(String, DbType, Object, Boolean, Boolean, Boolean, Int32, Int32, Int32)

Initializes a new instance of the DesignerDataColumn class with the specified values.

DesignerDataColumn(String, DbType)

Initializes a new instance of the DesignerDataColumn class with the specified name and data type.

public DesignerDataColumn (string name, System.Data.DbType dataType);

Parameters

name
String

The name identifying the column in the data store.

dataType
DbType

One of the DbType values.

Remarks

Use the DesignerDataColumn to set the Name and DataType properties. All other properties are set to their default values.

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

DesignerDataColumn(String, DbType, Object)

Initializes a new instance of the DesignerDataColumn class with the specified name, data type, and default value.

public DesignerDataColumn (string name, System.Data.DbType dataType, object defaultValue);

Parameters

name
String

The name identifying the column in the data store.

dataType
DbType

One of the DbType values.

defaultValue
Object

The default value of the column.

Remarks

Use the DesignerDataColumn constructor to set the Name, DataType, and DefaultValue properties. All other properties are set to their default values.

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

DesignerDataColumn(String, DbType, Object, Boolean, Boolean, Boolean, Int32, Int32, Int32)

Initializes a new instance of the DesignerDataColumn class with the specified values.

public DesignerDataColumn (string name, System.Data.DbType dataType, object defaultValue, bool identity, bool nullable, bool primaryKey, int precision, int scale, int length);

Parameters

name
String

The name identifying the column in the data store.

dataType
DbType

One of the DbType values.

defaultValue
Object

The default value of the column.

identity
Boolean

true if the field is the identity field of the data row; otherwise, false.

nullable
Boolean

true if the field can be null in the data store; otherwise, false.

primaryKey
Boolean

true if the field is the primary key of the data row; otherwise, false.

precision
Int32

The maximum number of digits used by a numeric data field.

scale
Int32

The maximum number of digits to the right of the decimal point in a numeric data field.

length
Int32

The length of the data field, in bytes.

Remarks

Use the DesignerDataColumn constructor to set all the properties of a DesignerDataColumn object.

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1