Aracılığıyla paylaş


ReportExecutionService.SetExecutionCredentials2 Yöntemi

Geçerli rapor yürütme ile ilişkili kimlik bilgileri bilgilerini ayarlar.

Ad Alanı:  ReportExecution2005
Derleme:  ReportExecution2005 (ReportExecution2005 içinde.dll)

Sözdizimi

'Bildirim
<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
'Kullanım
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

Parametreler

Dönüş Değeri

Tür: ReportExecution2005.ExecutionInfo2
Bir ExecutionInfo2 nesnesini içeren yeni bir yürütme.

Açıklamalar

Aşağıdaki tablo üstbilgi ve izinler bu işlemi gösterir.

soap üstbilgisi kullanımı

(De)TrustedUserHeaderValue

(De)ExecutionHeaderValue

(Giden)ServerInfoHeaderValue

Yerel mod gerekli izinleri

Ana rapor ve tüm alt raporlar: ReadProperties AND ExecuteAndView

SharePoint modu gerekli izinleri

Ana rapor ve tüm alt raporlar: ViewListItems()

kimlik bilgileri bilgileri, anlık görüntü varsa, küme ve AllowQueryExecution olan yanlış, anlık görüntü temizlenecek ve herhangi bir parametre re olacaktırküme varsayılan değerlerine.

Aynı rapor için sor birden çok veri kaynağı varsa, tüm aynı kimlik bilgileri bilgilerini belirtmeniz gerekir saat.Bir kimlik bilgileri küme değiştirilmesi gerekirse, tüm kimlik bilgileri yeniden girmeniz gerekir.

Kimlik bilgileri yalnızca etkin kalma süresi sonra bunlar yeniden belirtilmesi gerekir yürütme bulunurlar.