Dela via


ForeignKeyCollection.Item Property (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 supports the use of indexed properties, but not the declaration of new ones.

Parameters

Property Value

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