Freigeben über


ForeignKey.ID-Eigenschaft

Gets the ID value that uniquely identifies the foreign key.

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

Syntax

'Declaration
<SfcPropertyAttribute(SfcPropertyFlags.None Or SfcPropertyFlags.Standalone Or SfcPropertyFlags.SqlAzureDatabase)> _
Public ReadOnly Property ID As Integer 
    Get
'Usage
Dim instance As ForeignKey 
Dim value As Integer 

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

Eigenschaftswert

Typ: System.Int32
An Int32 value that specifies the ID value that uniquely identifies the foreign key.

Hinweise

This property corresponds to the foreign key ID value held in the system tables.

Beispiele

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

Siehe auch

Verweis

ForeignKey Klasse

Microsoft.SqlServer.Management.Smo-Namespace

Andere Ressourcen

Erstellen und Ändern von FOREIGN KEY-Einschränkungen

CREATE TABLE (Transact-SQL)