Metodo DataSourcePermissionCollection.FindByRole

Gets the DataSourcePermission, with the specified role identifier, from the collection.

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

Sintassi

'Dichiarazione
Public Function FindByRole ( _
    roleId As String _
) As DataSourcePermission
'Utilizzo
Dim instance As DataSourcePermissionCollection 
Dim roleId As String 
Dim returnValue As DataSourcePermission 

returnValue = instance.FindByRole(roleId)
public DataSourcePermission FindByRole(
    string roleId
)
public:
DataSourcePermission^ FindByRole(
    String^ roleId
)
member FindByRole : 
        roleId:string -> DataSourcePermission
public function FindByRole(
    roleId : String
) : DataSourcePermission

Parametri

Valore restituito

Tipo: Microsoft.AnalysisServices.DataSourcePermission
The DataSourcePermission if it is contained in the collection; otherwise, a null reference (Nothing in Visual Basic).

Vedere anche

Riferimento

DataSourcePermissionCollection Classe

Spazio dei nomi Microsoft.AnalysisServices