Edit

Share via


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(System::String ^ name, System::Data::DbType dataType);
public DesignerDataColumn (string name, System.Data.DbType dataType);
new System.ComponentModel.Design.Data.DesignerDataColumn : string * System.Data.DbType -> System.ComponentModel.Design.Data.DesignerDataColumn
Public Sub New (name As String, dataType As DbType)

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

DesignerDataColumn(String, DbType, Object)

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

public:
 DesignerDataColumn(System::String ^ name, System::Data::DbType dataType, System::Object ^ defaultValue);
public DesignerDataColumn (string name, System.Data.DbType dataType, object defaultValue);
new System.ComponentModel.Design.Data.DesignerDataColumn : string * System.Data.DbType * obj -> System.ComponentModel.Design.Data.DesignerDataColumn
Public Sub New (name As String, dataType As DbType, defaultValue As Object)

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

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

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

public:
 DesignerDataColumn(System::String ^ name, System::Data::DbType dataType, System::Object ^ defaultValue, bool identity, bool nullable, bool primaryKey, int precision, int scale, int length);
public DesignerDataColumn (string name, System.Data.DbType dataType, object defaultValue, bool identity, bool nullable, bool primaryKey, int precision, int scale, int length);
new System.ComponentModel.Design.Data.DesignerDataColumn : string * System.Data.DbType * obj * bool * bool * bool * int * int * int -> System.ComponentModel.Design.Data.DesignerDataColumn
Public Sub New (name As String, dataType As DbType, defaultValue As Object, identity As Boolean, nullable As Boolean, primaryKey As Boolean, precision As Integer, scale As Integer, length As Integer)

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