IndexOf 方法 (AttributeRelationship)
Gets the index of a specified AttributeRelationship in the collection.
命名空间: Microsoft.AnalysisServices
程序集: Microsoft.AnalysisServices(在 Microsoft.AnalysisServices.dll 中)
语法
声明
Public Function IndexOf ( _
item As AttributeRelationship _
) As Integer
用法
Dim instance As AttributeRelationshipCollection
Dim item As AttributeRelationship
Dim returnValue As Integer
returnValue = instance.IndexOf(item)
public int IndexOf(
AttributeRelationship item
)
public:
int IndexOf(
AttributeRelationship^ item
)
member IndexOf :
item:AttributeRelationship -> int
public function IndexOf(
item : AttributeRelationship
) : int
参数
- item
类型:Microsoft.AnalysisServices. . :: . .AttributeRelationship
Specifies the AttributeRelationship to be located in the collection.
返回值
类型:System. . :: . .Int32
The zero-based index at which the AttributeRelationship has been found in the collection. Otherwise, -1 if the object is not found.