Compartir a través de


DataType Constructor (SqlDataType, String)

Initializes a new instance of the DataType class based on a specified Microsoft SQL Server data type with the specified type.

Espacio de nombres: Microsoft.SqlServer.Management.Smo
Ensamblado: Microsoft.SqlServer.Smo (in microsoft.sqlserver.smo.dll)

Sintaxis

'Declaración
Public Sub New ( _
    sqlDataType As SqlDataType, _
    type As String _
)
public DataType (
    SqlDataType sqlDataType,
    string type
)
public:
DataType (
    SqlDataType sqlDataType, 
    String^ type
)
public DataType (
    SqlDataType sqlDataType, 
    String type
)
public function DataType (
    sqlDataType : SqlDataType, 
    type : String
)

Parámetros

  • sqlDataType
    A SqlDataType object value that specifies the SQL Server data type.
  • type
    A String value that specifies the type of data type.

Notas

Este espacio de nombres, clase o miembro solamente se admite en la versión 2.0 de Microsoft .NET Framework.

Ejemplo

How to: Construct a DataType Object by Using the Default Constructor in Visual Basic .NET

Plataformas

Plataformas de desarrollo

Para obtener una lista de las plataformas compatibles, vea Requisitos de hardware y software para instalar SQL Server 2005.

Plataformas de destino

Para obtener una lista de las plataformas compatibles, vea Requisitos de hardware y software para instalar SQL Server 2005.

Vea también

Referencia

DataType Class
DataType Members
Microsoft.SqlServer.Management.Smo Namespace

Otros recursos

Working with Data Types