Méthode MiningModelPermissionCollection.GetByRole
Returns the MiningModelPermission with the specified role identifier.
Espace de noms : Microsoft.AnalysisServices
Assembly : Microsoft.AnalysisServices (en Microsoft.AnalysisServices.dll)
Syntaxe
'Déclaration
Public Function GetByRole ( _
roleId As String _
) As MiningModelPermission
'Utilisation
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
Paramètres
- roleId
Type : System.String
The role identifier used to identify the MiningModelPermission.
Valeur de retour
Type : Microsoft.AnalysisServices.MiningModelPermission
The MiningModelPermission with the specified role identifier.
Exceptions
Exception | Condition |
---|---|
ItemNotFoundException | roleID is not contained by the collection. |