共用方式為


Parent 屬性

Gets or sets the Table object that is the parent of the ForeignKey object.

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

語法

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

value = instance.Parent

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

屬性值

型別:Microsoft.SqlServer.Management.Smo. . :: . .Table
A Table object that is the parent of the ForeignKey object.