DatabasePermissionCollection.GetByRole(String) Method

Definition

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

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

Parameters

roleId
String

The RoleID of the DatabasePermission to locate.

Returns

The DatabasePermission with the specified RoleID.

Exceptions

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

Applies to