Método ReportExecutionService.SetExecutionCredentials2
Sets the credentials associated with the current report execution.
Namespace: ReportExecution2005
Assembly: ReportExecution2005 (em ReportExecution2005.dll)
Sintaxe
'Declaração
Public Function SetExecutionCredentials2 ( _
Credentials As DataSourceCredentials() _
) As ExecutionInfo2
'Uso
Dim instance As ReportExecutionService
Dim Credentials As DataSourceCredentials()
Dim returnValue As ExecutionInfo2
returnValue = instance.SetExecutionCredentials2(Credentials)
public ExecutionInfo2 SetExecutionCredentials2(
DataSourceCredentials[] Credentials
)
public:
ExecutionInfo2^ SetExecutionCredentials2(
array<DataSourceCredentials^>^ Credentials
)
member SetExecutionCredentials2 :
Credentials:DataSourceCredentials[] -> ExecutionInfo2
public function SetExecutionCredentials2(
Credentials : DataSourceCredentials[]
) : ExecutionInfo2
Parâmetros
- Credentials
Tipo: array<ReportExecution2005.DataSourceCredentials[]
An array of DataSourceCredentials.
Valor de retorno
Tipo: ReportExecution2005.ExecutionInfo2
An ExecutionInfo2 object containing the new execution.
Comentários
The table below shows header and permissions information on this operation.
SOAP Header Usage |
(In) ExecutionHeaderValue (Out) ServerInfoHeaderValue |
Native Mode Required Permissions |
On the main report and all subreports: ReadProperties AND ExecuteAndView |
SharePoint Mode Required Permissions |
On the main report and all subreports: ViewListItems |
If a snapshot exists when the credentials are set and AllowQueryExecution is false, the snapshot will be cleared, and any parameters will be reset to their default values.
If there are multiple data sources that prompt for the same report, you need to specify all of the credentials at the same time. If one set of credentials must be changed, you must supply all of the credentials again.
Credentials are only persisted for the lifetime of the execution, after which they must be specified again.