Freigeben über


CubePermissionCollection.GetByName-Methode

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

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

Syntax

'Declaration
Public Function GetByName ( _
    name As String _
) As CubePermission
'Usage
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

Parameter

Rückgabewert

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

Ausnahmen

Ausnahme Bedingung
ItemNotFoundException

name is not contained by the collection.

Siehe auch

Verweis

CubePermissionCollection Klasse

Microsoft.AnalysisServices-Namespace