GetByRole 方法

Gets the CubePermission, with the specified role identifier, from the collection.

命名空间:  Microsoft.AnalysisServices
程序集:  Microsoft.AnalysisServices(在 Microsoft.AnalysisServices.dll 中)

语法

声明
Public Function GetByRole ( _
    roleId As String _
) As CubePermission
用法
Dim instance As CubePermissionCollection
Dim roleId As String
Dim returnValue As CubePermission

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

参数

返回值

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

异常

异常 条件
ItemNotFoundException

roleID is not contained by the collection.