Méthode DataSourcePermissionCollection.GetByRole
Gets the DataSourcePermission, with the specified role identifier, from the collection.
Espace de noms : Microsoft.AnalysisServices
Assembly : Microsoft.AnalysisServices (en Microsoft.AnalysisServices.dll)
Syntaxe
'Déclaration
Public Function GetByRole ( _
roleId As String _
) As DataSourcePermission
'Utilisation
Dim instance As DataSourcePermissionCollection
Dim roleId As String
Dim returnValue As DataSourcePermission
returnValue = instance.GetByRole(roleId)
public DataSourcePermission GetByRole(
string roleId
)
public:
DataSourcePermission^ GetByRole(
String^ roleId
)
member GetByRole :
roleId:string -> DataSourcePermission
public function GetByRole(
roleId : String
) : DataSourcePermission
Paramètres
- roleId
Type : System.String
The role identifier of the DataSourcePermission to be returned.
Valeur de retour
Type : Microsoft.AnalysisServices.DataSourcePermission
The DataSourcePermission if contained in the collection.
Exceptions
Exception | Condition |
---|---|
ItemNotFoundException | roleID is not contained by the collection. |