Condividi tramite


DataSourcePermissionCollection.GetByRole(String) Method

Definition

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

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

Parameters

roleId
String

The RoleID of the DataSourcePermission to locate.

Returns

The DataSourcePermission with the specified RoleID.

Exceptions

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

Applies to