DatabaseCollection.IndexOf DatabaseCollection.IndexOf DatabaseCollection.IndexOf Method

Definition

Gets the index of a Database.

Overloads

IndexOf(Database) IndexOf(Database) IndexOf(Database)

Gets the index of a specified Database.

IndexOf(String) IndexOf(String) IndexOf(String)

Gets the index of a Database with the specified identifier.

IndexOf(Database) IndexOf(Database) IndexOf(Database)

Gets the index of a specified Database.

public:
 int IndexOf(Microsoft::AnalysisServices::Database ^ item);
public int IndexOf (Microsoft.AnalysisServices.Database item);
Public Function IndexOf (item As Database) As Integer
Parameters
item
Database Database Database

The Database to be returned.

Returns

The zero-based index of the Database if the object is found; otherwise, -1.

IndexOf(String) IndexOf(String) IndexOf(String)

Gets the index of a Database with the specified identifier.

public:
 int IndexOf(System::String ^ id);
public int IndexOf (string id);
Public Function IndexOf (id As String) As Integer
Parameters
id
String String String

The identifier of a Database to be located.

Returns

The zero-based index of the Database specified by id if the object is found; otherwise, -1.

Applies to