Поделиться через


UserDefinedType Constructor (Database, String)

Initializes a new instance of the UserDefinedType class on the specified database and with the specified name.

Пространство имен: Microsoft.SqlServer.Management.Smo
Сборка: Microsoft.SqlServer.Smo (in microsoft.sqlserver.smo.dll)

Синтаксис

'Декларация
Public Sub New ( _
    database As Database, _
    name As String _
)
public UserDefinedType (
    Database database,
    string name
)
public:
UserDefinedType (
    Database^ database, 
    String^ name
)
public UserDefinedType (
    Database database, 
    String name
)
public function UserDefinedType (
    database : Database, 
    name : String
)

Параметры

  • database
    A Database object that specifies the database to which the alias data type belongs.
  • name
    A String value that specifies the name of the alias data type.

Замечания

Это пространство имен, класс или элемент поддерживаются только платформой Microsoft .NET Framework версии 2.0.

Пример

How to: Construct an Object in Visual Basic .NET

Платформы

Платформы разработки

Список поддерживаемых платформ см. в разделе Hardware and Software Requirements for Installing SQL Server 2005.

Целевые платформы

Список поддерживаемых платформ см. в разделе Hardware and Software Requirements for Installing SQL Server 2005.

См. также

Справочник

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

Другие ресурсы

Working with Data Types
Работа с определяемыми пользователем типами данных CLR
CREATE TYPE (Transact-SQL)