ValidateExtensionSettings 方法

验证 Reporting Services 扩展插件设置。

命名空间:  ReportService2010
程序集:  ReportService2010(在 ReportService2010.dll 中)

语法

声明
<SoapHeaderAttribute("TrustedUserHeaderValue")> _
<SoapHeaderAttribute("ServerInfoHeaderValue", Direction := SoapHeaderDirection.Out)> _
<SoapDocumentMethodAttribute("https://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/ValidateExtensionSettings", RequestNamespace := "https://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer",  _
    ResponseNamespace := "https://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer",  _
    Use := SoapBindingUse.Literal, ParameterStyle := SoapParameterStyle.Wrapped)> _
Public Function ValidateExtensionSettings ( _
    Extension As String, _
    ParameterValues As ParameterValueOrFieldReference(), _
    SiteUrl As String _
) As ExtensionParameter()
用法
Dim instance As ReportingService2010
Dim Extension As String
Dim ParameterValues As ParameterValueOrFieldReference()
Dim SiteUrl As String
Dim returnValue As ExtensionParameter()

returnValue = instance.ValidateExtensionSettings(Extension, _
    ParameterValues, SiteUrl)
[SoapHeaderAttribute("TrustedUserHeaderValue")]
[SoapHeaderAttribute("ServerInfoHeaderValue", Direction = SoapHeaderDirection.Out)]
[SoapDocumentMethodAttribute("https://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/ValidateExtensionSettings", RequestNamespace = "https://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", 
    ResponseNamespace = "https://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", 
    Use = SoapBindingUse.Literal, ParameterStyle = SoapParameterStyle.Wrapped)]
public ExtensionParameter[] ValidateExtensionSettings(
    string Extension,
    ParameterValueOrFieldReference[] ParameterValues,
    string SiteUrl
)
[SoapHeaderAttribute(L"TrustedUserHeaderValue")]
[SoapHeaderAttribute(L"ServerInfoHeaderValue", Direction = SoapHeaderDirection::Out)]
[SoapDocumentMethodAttribute(L"https://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/ValidateExtensionSettings", RequestNamespace = L"https://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", 
    ResponseNamespace = L"https://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", 
    Use = SoapBindingUse::Literal, ParameterStyle = SoapParameterStyle::Wrapped)]
public:
array<ExtensionParameter^>^ ValidateExtensionSettings(
    String^ Extension, 
    array<ParameterValueOrFieldReference^>^ ParameterValues, 
    String^ SiteUrl
)
[<SoapHeaderAttribute("TrustedUserHeaderValue")>]
[<SoapHeaderAttribute("ServerInfoHeaderValue", Direction = SoapHeaderDirection.Out)>]
[<SoapDocumentMethodAttribute("https://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/ValidateExtensionSettings", RequestNamespace = "https://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", 
    ResponseNamespace = "https://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", 
    Use = SoapBindingUse.Literal, ParameterStyle = SoapParameterStyle.Wrapped)>]
member ValidateExtensionSettings : 
        Extension:string * 
        ParameterValues:ParameterValueOrFieldReference[] * 
        SiteUrl:string -> ExtensionParameter[] 
public function ValidateExtensionSettings(
    Extension : String, 
    ParameterValues : ParameterValueOrFieldReference[], 
    SiteUrl : String
) : ExtensionParameter[]

参数

  • Extension
    类型:System. . :: . .String
    扩展插件的名称,该名称与在报表服务器配置文件中显示的一样。有效值是 Report Server Email 和 Report Server FileShare。
  • SiteUrl
    类型:System. . :: . .String
    SharePoint 站点的完全限定 URL。
    在本机模式下调用此方法时,将此参数设置为 nullNothingnullptrunitnull 引用(在 Visual Basic 中为 Nothing)(在 Visual Basic 中为 Nothing)。

返回值

类型:array<ReportService2010. . :: . .ExtensionParameter> [] () [] []
一个 ExtensionParameter 对象的数组,该数组包含经过验证的扩展插件设置以及所需的任何未指定的设置。

注释

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

SOAP Header Usage

(In) TrustedUserHeaderValue

(Out) ServerInfoHeaderValue

Native Mode Required Permissions

None

SharePoint Mode Required Permissions

None

This method throws an rsUnsupportedParameterForModeException exception if a non-null value is specified for the SiteUrl parameter in Native mode.

The ExtensionParameter objects that are returned by the ValidateExtensionSettings method contain the following items:

  • All valid setting values specified in the ParameterValues parameter.

  • Settings with values that are not valid contain an error message (Error property of the ExtensionParameter class).

  • The names of all required settings that were not specified in the ParameterValues parameter with the Required property of a ExtensionParameter class set to a value of true.

Note   Currently, the ValidateExtensionSettings method supports delivery extensions. Other extensions are not yet supported by this method.