CubeAttributeCollection.IndexOf 方法

定义

重载

IndexOf(CubeAttribute)

在集合中搜索指定的 CubeAttribute,并返回其从零开始的索引。

IndexOf(String)

在集合中搜索具有指定 AttributeID 的 CubeAttribute,并返回其从零开始的索引。

IndexOf(CubeAttribute)

在集合中搜索指定的 CubeAttribute,并返回其从零开始的索引。

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

参数

item
CubeAttribute

要在集合中查找的 CubeAttribute

返回

如果找到,则为集合中 CubeAttribute 的从零开始的索引;否则为 -1。

适用于

IndexOf(String)

在集合中搜索具有指定 AttributeID 的 CubeAttribute,并返回其从零开始的索引。

public int IndexOf (string attributeId);
override this.IndexOf : string -> int
Public Function IndexOf (attributeId As String) As Integer

参数

attributeId
String

要在集合中查找的 CubeAttribute 的 AttributeID。

返回

如果找到,则为集合中 CubeAttribute 的从零开始的索引;否则为 -1。

适用于