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
- name
Type: System.String
A String value that specifies the name of the ForeignKey object in the ForeignKeyCollection collection.
Property Value
Type: Microsoft.SqlServer.Management.Smo.ForeignKey
A ForeignKey object value that represents the foreign key.