共用方式為


ForeignKeyColumn.Parent 屬性

Gets the ForeignKey object that is the parent of the ForeignKeyColumn object.

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

語法

'宣告
<SfcObjectAttribute(SfcObjectRelationship.ParentObject, SfcObjectFlags.Design)> _
Public Property Parent As ForeignKey 
    Get 
    Set
'用途
Dim instance As ForeignKeyColumn 
Dim value As ForeignKey 

value = instance.Parent

instance.Parent = value
[SfcObjectAttribute(SfcObjectRelationship.ParentObject, SfcObjectFlags.Design)]
public ForeignKey Parent { get; set; }
[SfcObjectAttribute(SfcObjectRelationship::ParentObject, SfcObjectFlags::Design)]
public:
property ForeignKey^ Parent {
    ForeignKey^ get ();
    void set (ForeignKey^ value);
}
[<SfcObjectAttribute(SfcObjectRelationship.ParentObject, SfcObjectFlags.Design)>]
member Parent : ForeignKey with get, set
function get Parent () : ForeignKey 
function set Parent (value : ForeignKey)

屬性值

型別:Microsoft.SqlServer.Management.Smo.ForeignKey
A ForeignKey object that specifies the parent object of the ForeignKeyColumn object.

範例

建立、改變和移除外部索引鍵

請參閱

參考

ForeignKeyColumn 類別

Microsoft.SqlServer.Management.Smo 命名空間

其他資源

建立與修改 FOREIGN KEY 條件約束

CREATE TABLE (Transact-SQL)