MiningModelPermissionCollection.GetByRole 方法
Returns the MiningModelPermission with the specified role identifier.
命名空間: Microsoft.AnalysisServices
組件: Microsoft.AnalysisServices (在 Microsoft.AnalysisServices.dll 中)
語法
'宣告
Public Function GetByRole ( _
roleId As String _
) As MiningModelPermission
'用途
Dim instance As MiningModelPermissionCollection
Dim roleId As String
Dim returnValue As MiningModelPermission
returnValue = instance.GetByRole(roleId)
public MiningModelPermission GetByRole(
string roleId
)
public:
MiningModelPermission^ GetByRole(
String^ roleId
)
member GetByRole :
roleId:string -> MiningModelPermission
public function GetByRole(
roleId : String
) : MiningModelPermission
參數
- roleId
型別:System.String
The role identifier used to identify the MiningModelPermission.
傳回值
型別:Microsoft.AnalysisServices.MiningModelPermission
The MiningModelPermission with the specified role identifier.
例外狀況
例外狀況 | 條件 |
---|---|
ItemNotFoundException | roleID is not contained by the collection. |