AdomdRestrictionCollection.IndexOf 方法
Returns the zero-based index of the first occurrence of a restriction in the AdomdRestrictionCollection collection.
命名空间: Microsoft.AnalysisServices.AdomdClient
程序集: Microsoft.AnalysisServices.AdomdClient(在 Microsoft.AnalysisServices.AdomdClient.dll 中)
语法
声明
Public Function IndexOf ( _
value As AdomdRestriction _
) As Integer
用法
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
参数
- value
类型:Microsoft.AnalysisServices.AdomdClient.AdomdRestriction
The AdomdRestriction to locate in the AdomdRestrictionCollection collection.
返回值
类型:System.Int32
The index of value if found in the list; -1 otherwise.