IsPrimaryKey プロパティ

列で定義された主キー制約があるかどうかを取得します。値の設定も可能です。

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

構文

'宣言
Public Property IsPrimaryKey As Boolean
    Get
    Set
'使用
Dim instance As HeterogeneousColumn
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
Boolean 値です。
true の場合、列で定義された主キー制約が存在します。
false の場合は、主キーはありません。

説明

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