Condividi tramite


Metodo MiningModelPermissionCollection.GetByRole

Returns the MiningModelPermission with the specified role identifier.

Spazio dei nomi  Microsoft.AnalysisServices
Assembly:  Microsoft.AnalysisServices (in Microsoft.AnalysisServices.dll)

Sintassi

'Dichiarazione
Public Function GetByRole ( _
    roleId As String _
) As MiningModelPermission
'Utilizzo
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

Parametri

Valore restituito

Tipo: Microsoft.AnalysisServices.MiningModelPermission
The MiningModelPermission with the specified role identifier.

Eccezioni

Eccezione Condizione
ItemNotFoundException

roleID is not contained by the collection.

Vedere anche

Riferimento

MiningModelPermissionCollection Classe

Spazio dei nomi Microsoft.AnalysisServices