DesignerDataColumn Constructors
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Initializes a new instance of the DesignerDataColumn class.
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. |
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.
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 |
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.
- 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 |
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.
- 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 |
.NET feedback
.NET is an open source project. Select a link to provide feedback: