次の方法で共有


ReportExecutionService.SetExecutionParameters Method

現在のレポート実行に関連するパラメータ値を設定し、検証します。

名前空間: Microsoft.WSSUX.ReportingServicesWebService.RSExecutionService2005
アセンブリ: ReportExecution2005 (reportexecutionservice.dll 内)

構文

'宣言
<SoapHeaderAttribute("ServerInfoHeaderValue", Direction:=SoapHeaderDirection.Out)> _
<SoapDocumentMethodAttribute("https://schemas.microsoft.com/sqlserver/2005/06/30/reporting/reportingservices/SetExecutionParameters", RequestNamespace:="https://schemas.microsoft.com/sqlserver/2005/06/30/reporting/reportingservices", ResponseNamespace:="https://schemas.microsoft.com/sqlserver/2005/06/30/reporting/reportingservices", Use:=SoapBindingUse.Literal, ParameterStyle:=SoapParameterStyle.Wrapped)> _
<SoapHeaderAttribute("ExecutionHeaderValue")> _
Public Function SetExecutionParameters ( _
    Parameters As ParameterValue(), _
    ParameterLanguage As String _
) As ExecutionInfo
[SoapHeaderAttribute("ServerInfoHeaderValue", Direction=SoapHeaderDirection.Out)] 
[SoapDocumentMethodAttribute("https://schemas.microsoft.com/sqlserver/2005/06/30/reporting/reportingservices/SetExecutionParameters", RequestNamespace="https://schemas.microsoft.com/sqlserver/2005/06/30/reporting/reportingservices", ResponseNamespace="https://schemas.microsoft.com/sqlserver/2005/06/30/reporting/reportingservices", Use=SoapBindingUse.Literal, ParameterStyle=SoapParameterStyle.Wrapped)] 
[SoapHeaderAttribute("ExecutionHeaderValue")] 
public ExecutionInfo SetExecutionParameters (
    ParameterValue[] Parameters,
    string ParameterLanguage
)
[SoapHeaderAttribute(L"ServerInfoHeaderValue", Direction=SoapHeaderDirection::Out)] 
[SoapDocumentMethodAttribute(L"https://schemas.microsoft.com/sqlserver/2005/06/30/reporting/reportingservices/SetExecutionParameters", RequestNamespace=L"https://schemas.microsoft.com/sqlserver/2005/06/30/reporting/reportingservices", ResponseNamespace=L"https://schemas.microsoft.com/sqlserver/2005/06/30/reporting/reportingservices", Use=SoapBindingUse::Literal, ParameterStyle=SoapParameterStyle::Wrapped)] 
[SoapHeaderAttribute(L"ExecutionHeaderValue")] 
public:
ExecutionInfo^ SetExecutionParameters (
    array<ParameterValue^>^ Parameters, 
    String^ ParameterLanguage
)
/** @attribute SoapHeaderAttribute("ServerInfoHeaderValue", Direction=SoapHeaderDirection.Out) */ 
/** @attribute SoapDocumentMethodAttribute("https://schemas.microsoft.com/sqlserver/2005/06/30/reporting/reportingservices/SetExecutionParameters", RequestNamespace="https://schemas.microsoft.com/sqlserver/2005/06/30/reporting/reportingservices", ResponseNamespace="https://schemas.microsoft.com/sqlserver/2005/06/30/reporting/reportingservices", Use=SoapBindingUse.Literal, ParameterStyle=SoapParameterStyle.Wrapped) */ 
/** @attribute SoapHeaderAttribute("ExecutionHeaderValue") */ 
public ExecutionInfo SetExecutionParameters (
    ParameterValue[] Parameters, 
    String ParameterLanguage
)
SoapHeaderAttribute("ServerInfoHeaderValue", Direction=SoapHeaderDirection.Out) 
SoapDocumentMethodAttribute("https://schemas.microsoft.com/sqlserver/2005/06/30/reporting/reportingservices/SetExecutionParameters", RequestNamespace="https://schemas.microsoft.com/sqlserver/2005/06/30/reporting/reportingservices", ResponseNamespace="https://schemas.microsoft.com/sqlserver/2005/06/30/reporting/reportingservices", Use=SoapBindingUse.Literal, ParameterStyle=SoapParameterStyle.Wrapped) 
SoapHeaderAttribute("ExecutionHeaderValue") 
public function SetExecutionParameters (
    Parameters : ParameterValue[], 
    ParameterLanguage : String
) : ExecutionInfo

パラメータ

  • ParameterLanguage
    .NET Framework のロケール識別子です。

戻り値

新しい実行を含む ExecutionInfo オブジェクトです。

解説

クエリで使用されるパラメータ値を設定するときに現在の実行でスナップショットが存在する場合は、(実行または履歴スナップショットでない限り) 消去されます。非クエリ パラメータを設定してもスナップショットは消去されませんが、表示する前に処理が必要となります。

パラメータが検証に失敗すると、メソッドはエラーを返し、パラメータ値は変更されません。

ParameterLanguage が指定されている場合、パラメータはこの言語で解釈されます。ParameterLanguage が指定されていない場合、既定の動作が実行されます。

実行スナップショットまたは履歴スナップショットのパラメータは指定できません。

スレッド セーフ

この型の public static (Microsoft Visual Basic では共有 ) メンバは、スレッド セーフです。インスタンス メンバの場合は、スレッド セーフであるとは限りません。

プラットフォーム

開発プラットフォーム

サポートされているプラットフォームの一覧については、「SQL Server 2005 のインストールに必要なハードウェアおよびソフトウェア」を参照してください。

対象プラットフォーム

サポートされているプラットフォームの一覧については、「SQL Server 2005 のインストールに必要なハードウェアおよびソフトウェア」を参照してください。

参照

関連項目

ReportExecutionService Class
ReportExecutionService Members
Microsoft.WSSUX.ReportingServicesWebService.RSExecutionService2005 Namespace