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


Метод GetByRole

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

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

Синтаксис

'Декларация
Public Function GetByRole ( _
    roleId As String _
) As MiningModelPermission
'Применение
Dim instance As MiningModelPermissionCollection
Dim roleId As String
Dim returnValue As MiningModelPermission

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

Параметры

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

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

Исключения

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

roleID is not contained by the collection.