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


DataSourcePermissionCollection.GetByRole Method

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

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

Синтаксис

'Декларация
Public Function GetByRole ( _
    roleId As String _
) As DataSourcePermission
public DataSourcePermission GetByRole (
    string roleId
)
public:
DataSourcePermission^ GetByRole (
    String^ roleId
)
public DataSourcePermission GetByRole (
    String roleId
)
public function GetByRole (
    roleId : String
) : DataSourcePermission

Параметры

  • roleId

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

The DataSourcePermission if contained in the collection.

Исключения

Тип исключения Условие
ItemNotFoundException

roleID is not contained by the collection.

Синхронизация потоков

Any public static (Shared in Microsoft Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Платформы

Платформы разработки

Список поддерживаемых платформ см. в разделе Hardware and Software Requirements for Installing SQL Server 2005.

Целевые платформы

Список поддерживаемых платформ см. в разделе Hardware and Software Requirements for Installing SQL Server 2005.

См. также

Справочник

DataSourcePermissionCollection Class
DataSourcePermissionCollection Members
Microsoft.AnalysisServices Namespace