共用方式為


ReportExecutionService.SetExecutionParameters2 方法

Sets and validates parameter values associated with the current report execution.

命名空間:  ReportExecution2005
組件:  ReportExecution2005 (在 ReportExecution2005.dll 中)

語法

'宣告
Public Function SetExecutionParameters2 ( _
    Parameters As ParameterValue(), _
    ParameterLanguage As String _
) As ExecutionInfo2
'用途
Dim instance As ReportExecutionService 
Dim Parameters As ParameterValue()
Dim ParameterLanguage As String 
Dim returnValue As ExecutionInfo2 

returnValue = instance.SetExecutionParameters2(Parameters, _
    ParameterLanguage)
public ExecutionInfo2 SetExecutionParameters2(
    ParameterValue[] Parameters,
    string ParameterLanguage
)
public:
ExecutionInfo2^ SetExecutionParameters2(
    array<ParameterValue^>^ Parameters, 
    String^ ParameterLanguage
)
member SetExecutionParameters2 : 
        Parameters:ParameterValue[] * 
        ParameterLanguage:string -> ExecutionInfo2
public function SetExecutionParameters2(
    Parameters : ParameterValue[], 
    ParameterLanguage : String
) : ExecutionInfo2

參數

  • ParameterLanguage
    型別:System.String
    A .NET Framework locale identifier.

傳回值

型別:ReportExecution2005.ExecutionInfo2
An ExecutionInfo2 object containing the new execution.

備註

The table below shows header and permissions information on this operation.

SOAP Header Usage

(In) TrustedUserHeaderValue

(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 in the current execution when the parameter values used in the query are set, it will be cleared (if it is not an execution or a history snapshot). Setting non-query parameters will not cause the snapshot to be cleared, but will require processing before it can be rendered.

If parameters do not pass the validation, then the method will return an error and the parameter values will not be changed.

If ParameterLanguage is specified, parameters are interpreted in this language. If ParameterLanguage is not specified, the default behavior is used.

You cannot specify parameters for execution or history snapshots.

請參閱

參考

ReportExecutionService 類別

ReportExecution2005 命名空間