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
參數
- roleId
型別:System.String
The role identifier used to identify the MiningStructurePermission.
傳回值
型別:Microsoft.AnalysisServices.MiningStructurePermission
The MiningStructurePermission with the specified role identifier.
例外狀況
例外狀況 | 條件 |
---|---|
ItemNotFoundException | roleID does not exist in the collection. |