Udostępnij za pośrednictwem


Metoda AttributeRelationshipCollection.IndexOfName

Pobiera indeks AttributeRelationship, identyfikowane przez name, kolekcja.

Przestrzeń nazw:  Microsoft.AnalysisServices
Zestaw:  Microsoft.AnalysisServices (w Microsoft.AnalysisServices.dll)

Składnia

'Deklaracja
Public Function IndexOfName ( _
    name As String _
) As Integer
'Użycie
Dim instance As AttributeRelationshipCollection
Dim name As String
Dim returnValue As Integer

returnValue = instance.IndexOfName(name)
public int IndexOfName(
    string name
)
public:
int IndexOfName(
    String^ name
)
member IndexOfName : 
        name:string -> int 
public function IndexOfName(
    name : String
) : int

Parametry

Wartość zwracana

Typ: System.Int32
Indeks od zera, jaką AttributeRelationship zostało znalezione kolekcja.W przeciwnym razie -1, jeśli nie znaleziono obiektu.