public DataColumn(string columnName, System.Type dataType)

public DataColumn(string columnName, System.Type dataType)
Member of System.Data.DataColumn

Summary:
Inititalizes a new instance of the System.Data.DataColumn class using
the specified column name and data type.

Parameters:
columnName: A string that represents the name of the column to be
created. If set to null or an empty string (""), a default name will
be specified when added to the columns collection.
dataType: A supported System.Data.DataColumn.DataType.

Exceptions:
System.ArgumentNullException: No dataType was specified.

No comments:

Post a Comment