Метод RoleCollection.GetByName
Gets the Role that has the specified name from the collection.
Пространство имен: Microsoft.AnalysisServices
Сборка: Microsoft.AnalysisServices (в Microsoft.AnalysisServices.dll)
Синтаксис
'Декларация
Public Function GetByName ( _
name As String _
) As Role
'Применение
Dim instance As RoleCollection
Dim name As String
Dim returnValue As Role
returnValue = instance.GetByName(name)
public Role GetByName(
string name
)
public:
Role^ GetByName(
String^ name
)
member GetByName :
name:string -> Role
public function GetByName(
name : String
) : Role
Параметры
- name
Тип: System.String
The name of the Role to return.
Возвращаемое значение
Тип: Microsoft.AnalysisServices.Role
The Role if it exists in the collection.
Исключения
Исключение | Условие |
---|---|
ItemNotFoundException | name is not in the collection. |