共用方式為


RoleCollection.IndexOf Method

Definition

Overloads

IndexOf(Role)

Searches for the specified Role and returns the zero-based index of it in the collection.

IndexOf(String)

Searches for a Role with the specified identifier and returns the zero-based index of it in the collection.

IndexOf(Role)

Searches for the specified Role and returns the zero-based index of it in the collection.

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

Parameters

item
Role

The Role to locate in the collection.

Returns

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

Applies to

IndexOf(String)

Searches for a Role with the specified identifier and returns the zero-based index of it in the collection.

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

Parameters

id
String

The identifier of the Role to locate in the collection.

Returns

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

Applies to