Propriedade do RDL ForeignKey.ReferencedKey

Gets the primary key referenced by the foreign key.

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

Sintaxe

'Declaração
<SfcPropertyAttribute(SfcPropertyFlags.None Or SfcPropertyFlags.Standalone Or SfcPropertyFlags.SqlAzureDatabase)> _
Public ReadOnly Property ReferencedKey As String 
    Get
'Uso
Dim instance As ForeignKey 
Dim value As String 

value = instance.ReferencedKey
[SfcPropertyAttribute(SfcPropertyFlags.None|SfcPropertyFlags.Standalone|SfcPropertyFlags.SqlAzureDatabase)]
public string ReferencedKey { get; }
[SfcPropertyAttribute(SfcPropertyFlags::None|SfcPropertyFlags::Standalone|SfcPropertyFlags::SqlAzureDatabase)]
public:
property String^ ReferencedKey {
    String^ get ();
}
[<SfcPropertyAttribute(SfcPropertyFlags.None|SfcPropertyFlags.Standalone|SfcPropertyFlags.SqlAzureDatabase)>]
member ReferencedKey : string
function get ReferencedKey () : String

Valor da propriedade

Tipo: System.String
A String value that specifies the primary key referenced by the foreign key.

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)