SqlMetaData.SqlMetaData(String, SqlDbType) Constructor

This constructor supports the .NET Framework infrastructure and is not intended to be used directly from your code.

Initializes a new instance of the SqlMetaData class with the specified column name and type.

Namespace: System.Data.SqlServerCe
Assembly: System.Data.SqlServerCe (in system.data.sqlserverce.dll)


Public Sub New ( _
    name As String, _
    dbType As SqlDbType _
Dim name As String
Dim dbType As SqlDbType

Dim instance As New SqlMetaData(name, dbType)
public SqlMetaData (
    string name,
    SqlDbType dbType
SqlMetaData (
    String^ name, 
    SqlDbType dbType
public SqlMetaData (
    String name, 
    SqlDbType dbType
public function SqlMetaData (
    name : String, 
    dbType : SqlDbType
Not applicable.


  • name
    The name of the column.
  • dbType
    The SQL Server type of the parameter or column.


Windows CE, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows XP Professional x64 Edition, Windows XP SP2

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

Version Information

.NET Framework

Supported in: 3.0

.NET Compact Framework

Supported in: 2.0

See Also


SqlMetaData Class
SqlMetaData Members
System.Data.SqlServerCe Namespace