Sdílet prostřednictvím


BackupLocationCollection.IndexOf Method

Gets the index of a specified BackupLocation.

Namespace:  Microsoft.AnalysisServices
Assembly:  Microsoft.AnalysisServices (in Microsoft.AnalysisServices.dll)

Syntax

'Declaration
Public Function IndexOf ( _
    item As BackupLocation _
) As Integer
'Usage
Dim instance As BackupLocationCollection
Dim item As BackupLocation
Dim returnValue As Integer

returnValue = instance.IndexOf(item)
public int IndexOf(
    BackupLocation item
)
public:
int IndexOf(
    BackupLocation^ item
)
member IndexOf : 
        item:BackupLocation -> int 
public function IndexOf(
    item : BackupLocation
) : int

Parameters

Return Value

Type: System.Int32
The zero-based index of the BackupLocation if the object is found; otherwise, -1.