次の方法で共有


HeterogeneousTable.HasPrimaryKey プロパティ

テーブルに主キーがあるかどうかを取得します。値の設定も可能です。

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

構文

'宣言
Public Property HasPrimaryKey As Boolean 
    Get 
    Set
'使用
Dim instance As HeterogeneousTable 
Dim value As Boolean 

value = instance.HasPrimaryKey

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

プロパティ値

型: System.Boolean
Boolean 値です。true の場合は、テーブルには主キーが定義されています。false の場合は、主キーはありません。

説明

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

関連項目

参照

HeterogeneousTable クラス

Microsoft.SqlServer.Replication 名前空間