次の方法で共有


DefaultConstraint クラス

DefaultConstraint オブジェクトは、SQL Server の既定の制約を表します。

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

構文

'宣言
<SfcElementTypeAttribute("Default")> _
Public NotInheritable Class DefaultConstraint _
    Inherits ScriptNameObjectBase _
    Implements ICreatable, IDroppable, IRenamable, IAlterable,  _
    IExtendedProperties, IScriptable
'使用
Dim instance As DefaultConstraint
[SfcElementTypeAttribute("Default")]
public sealed class DefaultConstraint : ScriptNameObjectBase, 
    ICreatable, IDroppable, IRenamable, IAlterable, IExtendedProperties, 
    IScriptable
[SfcElementTypeAttribute(L"Default")]
public ref class DefaultConstraint sealed : public ScriptNameObjectBase, 
    ICreatable, IDroppable, IRenamable, IAlterable, IExtendedProperties, 
    IScriptable
[<SealedAttribute>]
[<SfcElementTypeAttribute("Default")>]
type DefaultConstraint =  
    class
        inherit ScriptNameObjectBase
        interface ICreatable
        interface IDroppable
        interface IRenamable
        interface IAlterable
        interface IExtendedProperties
        interface IScriptable
    end
public final class DefaultConstraint extends ScriptNameObjectBase implements ICreatable, IDroppable, IRenamable, IAlterable, IExtendedProperties, IScriptable

説明

DefaultConstraint オブジェクトのプロパティを取得するには、固定サーバー ロール public のメンバでもかまいません。

DefaultConstraint オブジェクトのプロパティを設定するには、親テーブルの ALTER 権限を持っているか、固定データベース ロール db_owner のメンバである必要があります。

既定の制約を作成または削除するには、親テーブルの ALTER 権限を持っているか、固定データベース ロール db_owner のメンバである必要があります。

スレッド セーフ

この型の public static (Microsoft Visual Basic では Shared) のすべてのメンバーは、マルチスレッド操作で安全に使用できます。 インスタンス メンバーの場合は、スレッド セーフであるとは限りません。

スレッド セーフ

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