ForeignKeyCollection.Item[String] ForeignKeyCollection.Item[String] ForeignKeyCollection.Item[String] Property

Definition

Overloads

Item[Int32] Item[Int32] Item[Int32]

Gets a ForeignKey object in the collection by index number.

Item[String] Item[String] Item[String]

Gets a ForeignKey object in the collection by name.

Item[Int32] Item[Int32] Item[Int32]

Gets a ForeignKey object in the collection by index number.

public:
 property Microsoft::SqlServer::Management::Smo::ForeignKey ^ default[int] { Microsoft::SqlServer::Management::Smo::ForeignKey ^ get(int index); };
public Microsoft.SqlServer.Management.Smo.ForeignKey this[int index] { get; }
Default Public ReadOnly Property Item(index As Integer) As ForeignKey
Parameters
index
Int32 Int32 Int32

An Int32 value that specifies the position of the ForeignKey object in the ForeignKeyCollection collection.

Property Value

A ForeignKey object value that represents the foreign key.

Examples

Using Collections

Item[String] Item[String] Item[String]

Gets a ForeignKey object in the collection by name.

public:
 property Microsoft::SqlServer::Management::Smo::ForeignKey ^ default[System::String ^] { Microsoft::SqlServer::Management::Smo::ForeignKey ^ get(System::String ^ name); };
public Microsoft.SqlServer.Management.Smo.ForeignKey this[string name] { get; }
Default Public ReadOnly Property Item(name As String) As ForeignKey
Parameters
name
String String String

A String value that specifies the name of the ForeignKey object in the ForeignKeyCollection collection.

Property Value

A ForeignKey object value that represents the foreign key.

Examples

Using Collections

Applies to