MiningModelPermissionCollection.GetByRole Método
Returns the MiningModelPermission with the specified role identifier.
Espacio de nombres: Microsoft.AnalysisServices
Ensamblado: Microsoft.AnalysisServices (en Microsoft.AnalysisServices.dll)
Sintaxis
'Declaración
Public Function GetByRole ( _
roleId As String _
) As MiningModelPermission
'Uso
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
Parámetros
- roleId
Tipo: System.String
The role identifier used to identify the MiningModelPermission.
Valor devuelto
Tipo: Microsoft.AnalysisServices.MiningModelPermission
The MiningModelPermission with the specified role identifier.
Excepciones
Excepción | Condición |
---|---|
ItemNotFoundException | roleID is not contained by the collection. |