次の方法で共有


UniqueConstraint.IsPrimaryKey プロパティ

この制約が一意であり、かつ主キーであるかどうかを取得または設定します。

名前空間:  Microsoft.Data.Schema.ScriptDom.Sql
アセンブリ:  Microsoft.Data.Schema.ScriptDom.Sql (Microsoft.Data.Schema.ScriptDom.Sql.dll 内)

構文

'宣言
Public Property IsPrimaryKey As Boolean
    Get
    Set
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

.NET Framework セキュリティ

  • 直前の呼び出し元に対する完全な信頼。 このメンバーは、部分的に信頼されているコードから使用することはできません。 詳細については、「部分信頼コードからのライブラリの使用」を参照してください。

参照

参照

UniqueConstraint クラス

Microsoft.Data.Schema.ScriptDom.Sql 名前空間