Condividi tramite


Proprietà Item (String)

Gets a ForeignKey object in the collection by name.

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

Sintassi

'Dichiarazione
Public ReadOnly Default Property Item ( _
    name As String _
) As ForeignKey
    Get
'Utilizzo
Dim instance As ForeignKeyCollection
Dim name As String
Dim value As ForeignKey

value = instance(name)
public ForeignKey this[
    string name
] { get; }
public:
property ForeignKey^ default[String^ name] {
    ForeignKey^ get (String^ name);
}
member Item : ForeignKey
JScript supporta l'utilizzo di proprietà indicizzate, ma non la dichiarazione di nuove proprietà.

Parametri

Valore proprietà

Tipo: Microsoft.SqlServer.Management.Smo. . :: . .ForeignKey
A ForeignKey object value that represents the foreign key.