Share via


RelationshipCollection.IndexOf Method

Definition

Overloads

IndexOf(Relationship)

Searches for the specified Relationship and returns its zero-based index within the collection.

IndexOf(String)

Searches for an Relationship with the specified ID and returns its zero-based index within the collection.

IndexOf(Relationship)

Searches for the specified Relationship and returns its zero-based index within the collection.

public int IndexOf (Microsoft.AnalysisServices.Relationship item);
override this.IndexOf : Microsoft.AnalysisServices.Relationship -> int
Public Function IndexOf (item As Relationship) As Integer

Parameters

item
Relationship

The Relationship to locate.

Returns

The zero-based index of the Relationship in the collection, if found; otherwise, -1.

Applies to

IndexOf(String)

Searches for an Relationship with the specified ID and returns its zero-based index within the collection.

public int IndexOf (string id);
override this.IndexOf : string -> int
Public Function IndexOf (id As String) As Integer

Parameters

id
String

The ID of the Relationship to be looked for.

Returns

The zero-based index of the Relationship in the collection, if found; otherwise, -1.

Applies to