GetByRole 方法
Gets the MiningStructurePermission that has the specified role identifier from the collection.
命名空间: 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
返回值
类型:Microsoft.AnalysisServices. . :: . .MiningStructurePermission
The MiningStructurePermission if it exists in the collection.
异常
异常 | 条件 |
---|---|
ItemNotFoundException | roleID does not exist in the collection. |