Compartilhar via


Método CubePermissionCollection.FindByRole

Gets the CubePermission, with the specified role identifier, from the collection.

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

Sintaxe

'Declaração
Public Function FindByRole ( _
    roleId As String _
) As CubePermission
'Uso
Dim instance As CubePermissionCollection 
Dim roleId As String 
Dim returnValue As CubePermission 

returnValue = instance.FindByRole(roleId)
public CubePermission FindByRole(
    string roleId
)
public:
CubePermission^ FindByRole(
    String^ roleId
)
member FindByRole : 
        roleId:string -> CubePermission
public function FindByRole(
    roleId : String
) : CubePermission

Parâmetros

Valor de retorno

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

Consulte também

Referência

CubePermissionCollection Classe

Namespace Microsoft.AnalysisServices