Compartilhar via


Propriedade do RDL ForeignKey.Parent

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

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

Sintaxe

'Declaração
<SfcObjectAttribute(SfcObjectRelationship.ParentObject, SfcObjectFlags.Design)> _
Public Property Parent As Table 
    Get 
    Set
'Uso
Dim instance As ForeignKey 
Dim value As Table 

value = instance.Parent

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

Valor da propriedade

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

Exemplos

Criando, alterando e removendo chaves estrangeiras

Consulte também

Referência

ForeignKey Classe

Namespace Microsoft.SqlServer.Management.Smo

Outros recursos

Criando e modificando restrições FOREIGN KEY

CREATE TABLE (Transact-SQL)