共用方式為


Check.Parent 屬性

Gets the SqlSmoObject object that is the parent of the Check object.

命名空間:  Microsoft.SqlServer.Management.Smo
組件:  Microsoft.SqlServer.Smo (在 Microsoft.SqlServer.Smo.dll 中)

語法

'宣告
<SfcParentAttribute("UserDefinedTableType")> _
<SfcParentAttribute("UserDefinedFunction")> _
<SfcParentAttribute("Table")> _
<SfcObjectAttribute(SfcObjectRelationship.ParentObject, SfcObjectFlags.Design)> _
Public Property Parent As SqlSmoObject 
    Get 
    Set
'用途
Dim instance As Check 
Dim value As SqlSmoObject 

value = instance.Parent

instance.Parent = value
[SfcParentAttribute("UserDefinedTableType")]
[SfcParentAttribute("UserDefinedFunction")]
[SfcParentAttribute("Table")]
[SfcObjectAttribute(SfcObjectRelationship.ParentObject, SfcObjectFlags.Design)]
public SqlSmoObject Parent { get; set; }
[SfcParentAttribute(L"UserDefinedTableType")]
[SfcParentAttribute(L"UserDefinedFunction")]
[SfcParentAttribute(L"Table")]
[SfcObjectAttribute(SfcObjectRelationship::ParentObject, SfcObjectFlags::Design)]
public:
property SqlSmoObject^ Parent {
    SqlSmoObject^ get ();
    void set (SqlSmoObject^ value);
}
[<SfcParentAttribute("UserDefinedTableType")>]
[<SfcParentAttribute("UserDefinedFunction")>]
[<SfcParentAttribute("Table")>]
[<SfcObjectAttribute(SfcObjectRelationship.ParentObject, SfcObjectFlags.Design)>]
member Parent : SqlSmoObject with get, set
function get Parent () : SqlSmoObject 
function set Parent (value : SqlSmoObject)

屬性值

型別:Microsoft.SqlServer.Management.Smo.SqlSmoObject
A SqlSmoObject object value that specifies the parent of the Check object.

備註

The check constraint is defined on a column or a table. The parent object specifies the column or the table on which the check constraint is defined.

範例

設定屬性

請參閱

參考

Check 類別

Microsoft.SqlServer.Management.Smo 命名空間

其他資源

使用資料庫物件

CHECK 條件約束

CREATE TABLE (Transact-SQL)