次の方法で共有


UserDefinedType Class

UserDefinedType は、.NET データ型に基づく別名データ型を表します。

名前空間: Microsoft.SqlServer.Management.Smo
アセンブリ: Microsoft.SqlServer.Smo (microsoft.sqlserver.smo.dll 内)

構文

'宣言
Public NotInheritable Class UserDefinedType
    Inherits ScriptSchemaObjectBase
    Implements IObjectPermission, ICreatable, IDroppable, IExtendedProperties, _
    IScriptable
public sealed class UserDefinedType : ScriptSchemaObjectBase, IObjectPermission, ICreatable, IDroppable, 
    IExtendedProperties, IScriptable
public ref class UserDefinedType sealed : public ScriptSchemaObjectBase, IObjectPermission, ICreatable, IDroppable, 
    IExtendedProperties, IScriptable
public final class UserDefinedType extends ScriptSchemaObjectBase implements IObjectPermission, ICreatable, 
    IDroppable, IExtendedProperties, IScriptable
public final class UserDefinedType extends ScriptSchemaObjectBase implements IObjectPermission, ICreatable, 
    IDroppable, IExtendedProperties, IScriptable

解説

この名前空間、クラス、またはメンバは、Microsoft .NET Framework Version 2.0 でのみサポートされています。

UserDefinedType オブジェクトの権限を取得するには、固定サーバー ロール public のメンバでも可能です。

UserDefinedType オブジェクト権限を設定するには、親データベースの CREATE TYPE 権限と、指定したスキーマの ALTER 権限を持っている必要があります。アセンブリを指定する場合は、アセンブリを所有しているか、またはアセンブリの REFERENCES 権限を持っている必要があります。

別名データ型を作成するには、親データベースの CREATE TYPE 権限と、指定したスキーマの ALTER 権限を持っている必要があります。アセンブリを指定する場合は、アセンブリを所有しているか、またはアセンブリの REFERENCES 権限を持っている必要があります。

別名データ型を削除するには、その型の CONTROL 権限と、指定したスキーマの ALTER 権限を持っている必要があります。

継承階層

System.Object
   Microsoft.SqlServer.Management.Smo.SmoObjectBase
     Microsoft.SqlServer.Management.Smo.SqlSmoObject
       Microsoft.SqlServer.Management.Smo.NamedSmoObject
         Microsoft.SqlServer.Management.Smo.ScriptNameObjectBase
           Microsoft.SqlServer.Management.Smo.ScriptSchemaObjectBase
            Microsoft.SqlServer.Management.Smo.UserDefinedType

スレッド セーフ

この型の public static (Microsoft Visual Basic では共有 ) メンバは、スレッド セーフです。インスタンス メンバの場合は、スレッド セーフであるとは限りません。

プラットフォーム

開発プラットフォーム

サポートされているプラットフォームの一覧については、「SQL Server 2005 のインストールに必要なハードウェアおよびソフトウェア」を参照してください。

対象プラットフォーム

サポートされているプラットフォームの一覧については、「SQL Server 2005 のインストールに必要なハードウェアおよびソフトウェア」を参照してください。

参照

関連項目

UserDefinedType Members
Microsoft.SqlServer.Management.Smo Namespace

その他の技術情報

データ型の処理
CLR ユーザー定義型の使用
CREATE TYPE (Transact-SQL)