Aracılığıyla paylaş


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

'Bildirim
Public ReadOnly Default Property Item ( _
    name As String _
) As ForeignKey
    Get
'Kullanım
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.

Examples

Using Collections

See Also

Reference

ForeignKeyCollection Class

Item Overload

Microsoft.SqlServer.Management.Smo Namespace