Udostępnij przez


Metoda RoleCollection.GetByName

Pobiera Role , o określonej nazwie z kolekcja.

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

Składnia

'Deklaracja
Public Function GetByName ( _
    name As String _
) As Role
'Użycie
Dim instance As RoleCollection
Dim name As String
Dim returnValue As Role

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

Parametry

Wartość zwracana

Typ: Microsoft.AnalysisServices.Role
Role Jeśli istnieje kolekcja.

Wyjątki

Wyjątek Warunek
ItemNotFoundException

namenie jest kolekcja.