CubePermissionCollection.GetByRole(String) Method

Definition

Gets the CubePermission that has the specified RoleID from the collection.

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

Parameters

roleId
String

The RoleID of the CubePermission to locate.

Returns

The CubePermission with the specified RoleID.

Exceptions

The collection doesn't contain a CubePermission with the specified RoleID.

Applies to