Partager via


Méthode RelationshipCollection.IndexOf (Relationship)

Gets the index of a specified Relationship.

Espace de noms :  Microsoft.AnalysisServices
Assembly :  Microsoft.AnalysisServices (en Microsoft.AnalysisServices.dll)

Syntaxe

'Déclaration
Public Function IndexOf ( _
    item As Relationship _
) As Integer
'Utilisation
Dim instance As RelationshipCollection 
Dim item As Relationship 
Dim returnValue As Integer 

returnValue = instance.IndexOf(item)
public int IndexOf(
    Relationship item
)
public:
int IndexOf(
    Relationship^ item
)
member IndexOf : 
        item:Relationship -> int
public function IndexOf(
    item : Relationship
) : int

Paramètres

Valeur de retour

Type : System.Int32
The zero-based index of the Relationship if the object is found; otherwise, -1.

Voir aussi

Référence

RelationshipCollection Classe

Surcharge IndexOf

Espace de noms Microsoft.AnalysisServices