SetExecutionCredentials2 メソッド

現在のレポート実行に関連する資格情報を設定します。

名前空間:  ReportExecution2005
アセンブリ:  ReportExecution2005 (ReportExecution2005.dll)

構文

'宣言
<SoapHeaderAttribute("ExecutionHeaderValue")> _
<SoapHeaderAttribute("ServerInfoHeaderValue", Direction := SoapHeaderDirection.Out)> _
<SoapHeaderAttribute("TrustedUserHeaderValue")> _
<SoapDocumentMethodAttribute("https://schemas.microsoft.com/sqlserver/2005/06/30/reporting/reportingservices/SetExecutionCredentials2", 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)> _
Public Function SetExecutionCredentials2 ( _
    Credentials As DataSourceCredentials() _
) As ExecutionInfo2
'使用
Dim instance As ReportExecutionService
Dim Credentials As DataSourceCredentials()
Dim returnValue As ExecutionInfo2

returnValue = instance.SetExecutionCredentials2(Credentials)
[SoapHeaderAttribute("ExecutionHeaderValue")]
[SoapHeaderAttribute("ServerInfoHeaderValue", Direction = SoapHeaderDirection.Out)]
[SoapHeaderAttribute("TrustedUserHeaderValue")]
[SoapDocumentMethodAttribute("https://schemas.microsoft.com/sqlserver/2005/06/30/reporting/reportingservices/SetExecutionCredentials2", 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)]
public ExecutionInfo2 SetExecutionCredentials2(
    DataSourceCredentials[] Credentials
)
[SoapHeaderAttribute(L"ExecutionHeaderValue")]
[SoapHeaderAttribute(L"ServerInfoHeaderValue", Direction = SoapHeaderDirection::Out)]
[SoapHeaderAttribute(L"TrustedUserHeaderValue")]
[SoapDocumentMethodAttribute(L"https://schemas.microsoft.com/sqlserver/2005/06/30/reporting/reportingservices/SetExecutionCredentials2", 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)]
public:
ExecutionInfo2^ SetExecutionCredentials2(
    array<DataSourceCredentials^>^ Credentials
)
[<SoapHeaderAttribute("ExecutionHeaderValue")>]
[<SoapHeaderAttribute("ServerInfoHeaderValue", Direction = SoapHeaderDirection.Out)>]
[<SoapHeaderAttribute("TrustedUserHeaderValue")>]
[<SoapDocumentMethodAttribute("https://schemas.microsoft.com/sqlserver/2005/06/30/reporting/reportingservices/SetExecutionCredentials2", 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)>]
member SetExecutionCredentials2 : 
        Credentials:DataSourceCredentials[] -> ExecutionInfo2 
public function SetExecutionCredentials2(
    Credentials : DataSourceCredentials[]
) : ExecutionInfo2

パラメーター

戻り値

型: ReportExecution2005. . :: . .ExecutionInfo2
新しい実行を含む ExecutionInfo2 オブジェクトです。

説明

資格情報が設定されていて AllowQueryExecution()()()() が false である場合にスナップショットが存在すると、スナップショットは消去され、すべてのパラメーターが既定値にリセットされます。

同じレポート用に入力を指示する複数のデータ ソースがある場合、すべての資格情報を同時に指定する必要があります。1 組の資格情報の変更が必要な場合、すべての資格情報を再度指定する必要があります。

資格情報は、実行の有効期間中のみ保持されます。有効期間が過ぎたら再度指定する必要があります。