Méthode RoleCollection.GetByName

Gets the Role that has the specified name from the collection.

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

Syntaxe

'Déclaration
Public Function GetByName ( _
    name As String _
) As Role
'Utilisation
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

Paramètres

Valeur de retour

Type : Microsoft.AnalysisServices.Role
The Role if it exists in the collection.

Exceptions

Exception Condition
ItemNotFoundException

name is not in the collection.

Voir aussi

Référence

RoleCollection Classe

Espace de noms Microsoft.AnalysisServices