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