Метод RoleCollection.GetByName

Gets the Role that has the specified name from the collection.

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

Синтаксис

C#
public Role GetByName(
    string name
)

Параметры

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

Тип: Microsoft.AnalysisServices.Role
The Role if it exists in the collection.

Исключения

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

name is not in the collection.

См. также

Справочник

RoleCollection Класс

Пространство имен Microsoft.AnalysisServices