Compartilhar via


Método GetByName

Gets the CubePermission, with the specified name, from the collection.

Namespace:  Microsoft.AnalysisServices
Assembly:  Microsoft.AnalysisServices (em Microsoft.AnalysisServices.dll)

Sintaxe

'Declaração
Public Function GetByName ( _
    name As String _
) As CubePermission
'Uso
Dim instance As CubePermissionCollection
Dim name As String
Dim returnValue As CubePermission

returnValue = instance.GetByName(name)
public CubePermission GetByName(
    string name
)
public:
CubePermission^ GetByName(
    String^ name
)
member GetByName : 
        name:string -> CubePermission 
public function GetByName(
    name : String
) : CubePermission

Parâmetros

Valor de retorno

Tipo: Microsoft.AnalysisServices. . :: . .CubePermission
The CubePermission, if it is contained in the collection.

Exceções

Exceção Condição
ItemNotFoundException

name is not contained by the collection.