Partager via


Propriété ForeignKeyColumn.ID

Gets the foreign key column ID value.

Espace de noms :  Microsoft.SqlServer.Management.Smo
Assembly :  Microsoft.SqlServer.Smo (en Microsoft.SqlServer.Smo.dll)

Syntaxe

'Déclaration
<SfcPropertyAttribute(SfcPropertyFlags.None Or SfcPropertyFlags.Standalone Or SfcPropertyFlags.SqlAzureDatabase)> _
Public ReadOnly Property ID As Integer 
    Get
'Utilisation
Dim instance As ForeignKeyColumn 
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

Valeur de propriété

Type : System.Int32
An Int32 value that specifies the foreign key column ID value.

Notes

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

Exemples

Création, modification et suppression de clés étrangères

Voir aussi

Référence

ForeignKeyColumn Classe

Espace de noms Microsoft.SqlServer.Management.Smo

Autres ressources

Création et modification des contraintes FOREIGN KEY

CREATE TABLE (Transact-SQL)