Share via


RestoreLocationCollection.IndexOf(RestoreLocation) Method

Definition

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

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

Parameters

item
RestoreLocation

The RestoreLocation to locate.

Returns

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

Applies to