CubeAttributeCollection.IndexOf Method (CubeAttribute)
Gets the index of a specified CubeAttribute.
Namespace: Microsoft.AnalysisServices
Assembly: Microsoft.AnalysisServices (in Microsoft.AnalysisServices.dll)
Syntax
'Declaration
Public Function IndexOf ( _
item As CubeAttribute _
) As Integer
'Usage
Dim instance As CubeAttributeCollection
Dim item As CubeAttribute
Dim returnValue As Integer
returnValue = instance.IndexOf(item)
public int IndexOf(
CubeAttribute item
)
public:
int IndexOf(
CubeAttribute^ item
)
member IndexOf :
item:CubeAttribute -> int
public function IndexOf(
item : CubeAttribute
) : int
Parameters
- item
Type: Microsoft.AnalysisServices.CubeAttribute
The CubeAttribute to be returned.
Return Value
Type: System.Int32
The zero-based index of the CubeAttribute if the object is found; otherwise, -1.