IndexCollection.Item[String] IndexCollection.Item[String] IndexCollection.Item[String] Property

Definition

Overloads

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

Gets an Index object in the collection by index number.

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

Gets an Index object in the collection by name.

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

Gets an Index object in the collection by index number.

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

An Int32 value that specifies the position of the Index object in the IndexCollection collection.

Property Value

An Index object value that represents the index.

Examples

Using Collections

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

Gets an Index object in the collection by name.

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

A String value that specifies the name of the Index object in the IndexCollection collection.

Property Value

An Index object value that represents the index.

Examples

Using Collections

Applies to