Właściwość HeterogeneousTable.HasPrimaryKey
Pobiera lub ustawia, czy tabela ma klucz podstawowy.
Przestrzeń nazw: Microsoft.SqlServer.Replication
Zestaw: Microsoft.SqlServer.Rmo (w Microsoft.SqlServer.Rmo.dll)
Składnia
'Deklaracja
Public Property HasPrimaryKey As Boolean
Get
Set
'Użycie
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)
Wartość właściwości
Typ: System.Boolean
A Boolean wartości.
Jeśli true, jest klucz podstawowy zdefiniowanych w tabela.
Jeśli false, klucz podstawowy nie istnieje.
Uwagi
Ten obszar nazw, klasy lub element członkowski jest obsługiwany tylko w wersja 2.0 Microsoft .NET Framework.