Поделиться через


Метод GetByRole

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

Пространство имен:  Microsoft.AnalysisServices
Сборка:  Microsoft.AnalysisServices (в Microsoft.AnalysisServices.dll)

Синтаксис

'Декларация
Public Function GetByRole ( _
    roleId As String _
) As DataSourcePermission
'Применение
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

Параметры

Возвращаемое значение

Тип Microsoft.AnalysisServices. . :: . .DataSourcePermission
The DataSourcePermission if contained in the collection.

Исключения

Исключение Условие
ItemNotFoundException

roleID is not contained by the collection.