SqlMetaData.SqlMetaData(String, SqlDbType, Int64, Byte, Byte, Int64, SqlCompareOptions, Type) 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, type, maximum length, precision, scale, locale ID, compare options, and user-defined type.
Namespace: System.Data.SqlServerCe
Assembly: System.Data.SqlServerCe (in system.data.sqlserverce.dll)
Syntax
'Declaration
Public Sub New ( _
name As String, _
dbType As SqlDbType, _
maxLength As Long, _
precision As Byte, _
scale As Byte, _
localeId As Long, _
compareOptions As SqlCompareOptions, _
userDefinedType As Type _
)
'Usage
Dim name As String
Dim dbType As SqlDbType
Dim maxLength As Long
Dim precision As Byte
Dim scale As Byte
Dim localeId As Long
Dim compareOptions As SqlCompareOptions
Dim userDefinedType As Type
Dim instance As New SqlMetaData(name, dbType, maxLength, precision, scale, localeId, compareOptions, userDefinedType)
public SqlMetaData (
string name,
SqlDbType dbType,
long maxLength,
byte precision,
byte scale,
long localeId,
SqlCompareOptions compareOptions,
Type userDefinedType
)
public:
SqlMetaData (
String^ name,
SqlDbType dbType,
long long maxLength,
unsigned char precision,
unsigned char scale,
long long localeId,
SqlCompareOptions compareOptions,
Type^ userDefinedType
)
public SqlMetaData (
String name,
SqlDbType dbType,
long maxLength,
byte precision,
byte scale,
long localeId,
SqlCompareOptions compareOptions,
Type userDefinedType
)
public function SqlMetaData (
name : String,
dbType : SqlDbType,
maxLength : long,
precision : byte,
scale : byte,
localeId : long,
compareOptions : SqlCompareOptions,
userDefinedType : Type
)
Not applicable.
Parameters
- name
The name of the parameter or column
- dbType
The SQL Server type of the parameter or column
- maxLength
The maximum length of the specified type.
- precision
The precision of the parameter or column.
- scale
The scale of the parameter or column.
- localeId
The locale ID of the parameter or column.
- compareOptions
The comparison rules of the parameter or column.
- userDefinedType
A Type instance that points to the user-defined type.
Platforms
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
Reference
SqlMetaData Class
SqlMetaData Members
System.Data.SqlServerCe Namespace