ForeignKeyCollection.Item-Eigenschaft (String)
Gets a ForeignKey object in the collection by name.
Namespace: Microsoft.SqlServer.Management.Smo
Assembly: Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)
Syntax
'Declaration
Public ReadOnly Default Property Item ( _
name As String _
) As ForeignKey
Get
'Usage
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 unterstützt die Verwendung indizierter Eigenschaften, aber nicht die Deklaration neuer Eigenschaften.
Parameter
- name
Typ: System.String
A String value that specifies the name of the ForeignKey object in the ForeignKeyCollection collection.
Eigenschaftswert
Typ: Microsoft.SqlServer.Management.Smo.ForeignKey
A ForeignKey object value that represents the foreign key.