Share via


DatabasePermissionCollection.FindByRole(String) Method

Definition

Gets the DatabasePermission with the specified RoleID from the collection.

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

Parameters

roleId
String

The RoleID of the DatabasePermission to locate.

Returns

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

Applies to