Compartilhar via


Método RoleCollection.FindByName

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

Namespace:  Microsoft.AnalysisServices
Assembly:  Microsoft.AnalysisServices (em Microsoft.AnalysisServices.dll)

Sintaxe

'Declaração
Public Function FindByName ( _
    name As String _
) As Role
'Uso
Dim instance As RoleCollection 
Dim name As String 
Dim returnValue As Role 

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

Parâmetros

Valor de retorno

Tipo: Microsoft.AnalysisServices.Role
The Role if it exists in the collection; otherwise, a null reference (Nothing in Visual Basic).

Consulte também

Referência

RoleCollection Classe

Namespace Microsoft.AnalysisServices