Share via


AdomdRestrictionCollection.IndexOf Method

Returns the zero-based index of the first occurrence of a restriction in the AdomdRestrictionCollection collection.

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

Syntax

'Declaration
Public Function IndexOf ( _
    value As AdomdRestriction _
) As Integer
'Usage
Dim instance As AdomdRestrictionCollection
Dim value As AdomdRestriction
Dim returnValue As Integer

returnValue = instance.IndexOf(value)
public int IndexOf(
    AdomdRestriction value
)
public:
int IndexOf(
    AdomdRestriction^ value
)
member IndexOf : 
        value:AdomdRestriction -> int 
public function IndexOf(
    value : AdomdRestriction
) : int

Return Value

Type: System.Int32
The index of value if found in the list; -1 otherwise.