共用方式為


PrimaryKey 屬性

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

命名空間:  Microsoft.Synchronization.Data
組件:  Microsoft.Synchronization.Data (在 Microsoft.Synchronization.Data.dll 中)

語法

'宣告
Public Property PrimaryKey As String()
    Get
    Set
'用途
Dim instance As SyncSchemaTable
Dim value As String()

value = instance.PrimaryKey

instance.PrimaryKey = value
public string[] PrimaryKey { get; set; }
public:
property array<String^>^ PrimaryKey {
    array<String^>^ get ();
    void set (array<String^>^ value);
}
member PrimaryKey : string[] with get, set
function get PrimaryKey () : String[]
function set PrimaryKey (value : String[])

屬性值

型別:array<System. . :: . .String> [] () [] []
包含資料表之主索引鍵資料行的陣列。

例外

例外狀況 條件
ArgumentNullException

value 是 null Nothing nullptr unit null 參考 (在 Visual Basic 中為 Nothing) 。

ArgumentException

value 包含不在父資料集中的資料行。

請參閱

參考

SyncSchemaTable類別

SyncSchemaTable 成員

Microsoft.Synchronization.Data 命名空間