Oharra
Baimena behar duzu orria atzitzeko. Direktorioetan saioa has dezakezu edo haiek alda ditzakezu.
Baimena behar duzu orria atzitzeko. Direktorioak alda ditzakezu.
Gets the Role that has the specified name from the collection.
Espacio de nombres: Microsoft.AnalysisServices
Ensamblado: Microsoft.AnalysisServices (en Microsoft.AnalysisServices.dll)
Sintaxis
'Declaración
Public Function GetByName ( _
name As String _
) As Role
'Uso
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
Parámetros
- name
Tipo: System.String
The name of the Role to return.
Valor devuelto
Tipo: Microsoft.AnalysisServices.Role
The Role if it exists in the collection.
Excepciones
| Excepción | Condición |
|---|---|
| ItemNotFoundException | name is not in the collection. |