次の方法で共有


UniqueConstraintDefinition.IsPrimaryKey プロパティ

制約が一意制約と主キー制約の両方であるかどうかを取得または設定します。

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

構文

'宣言
Public Property IsPrimaryKey As Boolean 
    Get 
    Set
'使用
Dim instance As UniqueConstraintDefinition 
Dim value As Boolean 

value = instance.IsPrimaryKey

instance.IsPrimaryKey = value
public bool IsPrimaryKey { get; set; }
public:
property bool IsPrimaryKey {
    bool get ();
    void set (bool value);
}
member IsPrimaryKey : bool with get, set
function get IsPrimaryKey () : boolean 
function set IsPrimaryKey (value : boolean)

プロパティ値

型: System.Boolean
制約が一意制約と主キー制約の両方である場合は true、それ以外の場合は false。

関連項目

参照

UniqueConstraintDefinition クラス

Microsoft.SqlServer.TransactSql.ScriptDom 名前空間