Condividi tramite


Proprietà ForeignKey.ReferencedKey

Gets the primary key referenced by the foreign key.

Spazio dei nomi  Microsoft.SqlServer.Management.Smo
Assembly:  Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)

Sintassi

'Dichiarazione
<SfcPropertyAttribute(SfcPropertyFlags.None Or SfcPropertyFlags.Standalone Or SfcPropertyFlags.SqlAzureDatabase)> _
Public ReadOnly Property ReferencedKey As String 
    Get
'Utilizzo
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

Valore proprietà

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

Esempi

Creazione, modifica e rimozione di chiavi esterne

Vedere anche

Riferimento

ForeignKey Classe

Spazio dei nomi Microsoft.SqlServer.Management.Smo

Altre risorse

Creazione e modifica di vincoli FOREIGN KEY

CREATE TABLE (Transact-SQL)