共用方式為


ColumnConfigAnnotation.IsPartOfPrimaryKey 屬性

取得值,這個值表示資料行是否屬於主索引鍵的一部分。

命名空間:  Microsoft.Data.Schema.Tools.DataGenerator
組件:  Microsoft.Data.Schema.Tools (在 Microsoft.Data.Schema.Tools.dll 中)

語法

'宣告
Public Property IsPartOfPrimaryKey As Boolean
    Get
    Set
public bool IsPartOfPrimaryKey { get; set; }
public:
property bool IsPartOfPrimaryKey {
    bool get ();
    void set (bool value);
}
member IsPartOfPrimaryKey : bool with get, set
function get IsPartOfPrimaryKey () : boolean
function set IsPartOfPrimaryKey (value : boolean)

屬性值

型別:System.Boolean
如果資料行屬於主索引鍵的一部分,則為 true,否則為 false。

.NET Framework 安全性

請參閱

參考

ColumnConfigAnnotation 類別

Microsoft.Data.Schema.Tools.DataGenerator 命名空間