Dela via


DataSourcePermissionCollection.GetByRole Method

Gets the DataSourcePermission, with the specified role identifier, from the collection.

Namespace:  Microsoft.AnalysisServices
Assembly:  Microsoft.AnalysisServices (in Microsoft.AnalysisServices.dll)

Syntax

'Declaration
Public Function GetByRole ( _
    roleId As String _
) As DataSourcePermission
'Usage
Dim instance As DataSourcePermissionCollection
Dim roleId As String
Dim returnValue As DataSourcePermission

returnValue = instance.GetByRole(roleId)
public DataSourcePermission GetByRole(
    string roleId
)
public:
DataSourcePermission^ GetByRole(
    String^ roleId
)
member GetByRole : 
        roleId:string -> DataSourcePermission 
public function GetByRole(
    roleId : String
) : DataSourcePermission

Parameters

Return Value

Type: Microsoft.AnalysisServices.DataSourcePermission
The DataSourcePermission if contained in the collection.

Exceptions

Exception Condition
ItemNotFoundException

roleID is not contained by the collection.