Partilhar via


CubePermissionCollection.FindByRole(String) Method

Definition

Gets the CubePermission with the specified RoleID from the collection.

public Microsoft.AnalysisServices.CubePermission FindByRole (string roleId);
member this.FindByRole : string -> Microsoft.AnalysisServices.CubePermission
Public Function FindByRole (roleId As String) As CubePermission

Parameters

roleId
String

The RoleID of the CubePermission to locate.

Returns

The CubePermission with the specified RoleID, if it exists in the collection; otherwise, a null reference (Nothing in Visual Basic).

Applies to