Метод RoleCollection.FindByName
Gets the Role that has the specified name from the collection.
Пространство имен: Microsoft.AnalysisServices
Сборка: Microsoft.AnalysisServices (в Microsoft.AnalysisServices.dll)
Синтаксис
'Декларация
Public Function FindByName ( _
name As String _
) As Role
'Применение
Dim instance As RoleCollection
Dim name As String
Dim returnValue As Role
returnValue = instance.FindByName(name)
public Role FindByName(
string name
)
public:
Role^ FindByName(
String^ name
)
member FindByName :
name:string -> Role
public function FindByName(
name : String
) : Role
Параметры
- name
Тип: System.String
The name of the Role to return.
Возвращаемое значение
Тип: Microsoft.AnalysisServices.Role
The Role if it exists in the collection; otherwise, a null reference (Nothing in Visual Basic).