Share via


DataSourcePermissionCollection.FindByRole(String) Method

Definition

Gets the DataSourcePermission with the specified RoleID from the collection.

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

Parameters

roleId
String

The RoleID of the DataSourcePermission to locate.

Returns

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

Applies to