MiningStructurePermissionCollection.GetByRole 方法

Gets the MiningStructurePermission with the specified role identifier.

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

语法

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

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

参数

返回值

类型:Microsoft.AnalysisServices.MiningStructurePermission
The MiningStructurePermission with the specified role identifier.

异常

异常 条件
ItemNotFoundException

roleID does not exist in the collection.

请参阅

参考

MiningStructurePermissionCollection 类

Microsoft.AnalysisServices 命名空间