Freigeben über


ForeignKeyColumn.Parent-Eigenschaft

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

Namespace:  Microsoft.SqlServer.Management.Smo
Assembly:  Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)

Syntax

'Declaration
<SfcObjectAttribute(SfcObjectRelationship.ParentObject, SfcObjectFlags.Design)> _
Public Property Parent As ForeignKey 
    Get 
    Set
'Usage
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)

Eigenschaftswert

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

Beispiele

Erstellen, Ändern und Löschen von Fremdschlüsseln

Siehe auch

Verweis

ForeignKeyColumn Klasse

Microsoft.SqlServer.Management.Smo-Namespace

Andere Ressourcen

Erstellen und Ändern von FOREIGN KEY-Einschränkungen

CREATE TABLE (Transact-SQL)