获取或设置一个指示这是否为主键的值。
命名空间: Microsoft.Data.Schema.Sql.SchemaModel
程序集: Microsoft.Data.Schema.Sql(在 Microsoft.Data.Schema.Sql.dll 中)
语法
声明
Property IsPrimaryKey As Boolean
Get
Set
bool IsPrimaryKey { get; set; }
property bool IsPrimaryKey {
bool get ();
void set (bool value);
}
abstract IsPrimaryKey : bool with get, set
function get IsPrimaryKey () : boolean
function set IsPrimaryKey (value : boolean)
属性值
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。