共用方式為


SyncSchemaTable.PrimaryKey 屬性

取得或設定資料表的主索引鍵資料行。

命名空間: Microsoft.Synchronization.Data
組件: Microsoft.Synchronization.Data (在 microsoft.synchronization.data.dll)

語法

'宣告
<SuppressMessageAttribute("Microsoft.Performance", "CA1819:PropertiesShouldNotReturnArrays")> _
Public Property PrimaryKey As String()
'用途
Dim instance As SyncSchemaTable
Dim value As String()

value = instance.PrimaryKey

instance.PrimaryKey = value
[SuppressMessageAttribute("Microsoft.Performance", "CA1819:PropertiesShouldNotReturnArrays")] 
public string[] PrimaryKey { get; set; }
[SuppressMessageAttribute(L"Microsoft.Performance", L"CA1819:PropertiesShouldNotReturnArrays")] 
public:
property array<String^>^ PrimaryKey {
    array<String^>^ get ();
    void set (array<String^>^ value);
}
/** @property */
public String[] get_PrimaryKey ()

/** @property */
public void set_PrimaryKey (String[] value)
public function get PrimaryKey () : String[]

public function set PrimaryKey (value : String[])

屬性值

包含資料表之主索引鍵資料行的陣列。

請參閱

參考

SyncSchemaTable 類別
SyncSchemaTable 成員
Microsoft.Synchronization.Data 命名空間