AggregationAttributeCollection.IndexOf 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
IndexOf(AggregationAttribute) |
在集合中搜索指定的 AggregationAttribute,并返回其从零开始的索引。 |
IndexOf(String) |
在集合中搜索具有指定 AttributeID 的 AggregationAttribute,并返回其从零开始的索引。 |
IndexOf(AggregationAttribute)
在集合中搜索指定的 AggregationAttribute,并返回其从零开始的索引。
public int IndexOf (Microsoft.AnalysisServices.AggregationAttribute item);
override this.IndexOf : Microsoft.AnalysisServices.AggregationAttribute -> int
Public Function IndexOf (item As AggregationAttribute) As Integer
参数
- item
- AggregationAttribute
要在集合中查找的 AggregationAttribute。
返回
如果找到,则为集合中 AggregationAttribute 的从零开始的索引;否则为 -1。
适用于
IndexOf(String)
在集合中搜索具有指定 AttributeID 的 AggregationAttribute,并返回其从零开始的索引。
public int IndexOf (string attributeId);
override this.IndexOf : string -> int
Public Function IndexOf (attributeId As String) As Integer
参数
- attributeId
- String
要在集合中查找的 AggregationAttribute 的 AttributeID。
返回
如果找到,则为集合中 AggregationAttribute 的从零开始的索引;否则为 -1。