Share via


DimensionPermissionCollection.GetByRole(String) Method

Definition

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

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

Parameters

roleId
String

The RoleID of the DimensionPermission to locate.

Returns

The DimensionPermission with the specified RoleID.

Exceptions

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

Applies to