共用方式為


ReportingService2010.ValidateExtensionSettings Method

Definition

Validates Reporting Services extension settings.

public:
 cli::array <ReportService2010::ExtensionParameter ^> ^ ValidateExtensionSettings(System::String ^ Extension, cli::array <ReportService2010::ParameterValueOrFieldReference ^> ^ ParameterValues, System::String ^ SiteUrl);
[System.Web.Services.Protocols.SoapDocumentMethod("http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/ValidateExtensionSettings", ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped, RequestNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", ResponseNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", Use=System.Web.Services.Description.SoapBindingUse.Literal)]
[System.Web.Services.Protocols.SoapHeader("TrustedUserHeaderValue")]
[System.Web.Services.Protocols.SoapHeader("ServerInfoHeaderValue", Direction=System.Web.Services.Protocols.SoapHeaderDirection.Out)]
public ReportService2010.ExtensionParameter[] ValidateExtensionSettings (string Extension, ReportService2010.ParameterValueOrFieldReference[] ParameterValues, string SiteUrl);
[<System.Web.Services.Protocols.SoapDocumentMethod("http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/ValidateExtensionSettings", ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped, RequestNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", ResponseNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", Use=System.Web.Services.Description.SoapBindingUse.Literal)>]
[<System.Web.Services.Protocols.SoapHeader("TrustedUserHeaderValue")>]
[<System.Web.Services.Protocols.SoapHeader("ServerInfoHeaderValue", Direction=System.Web.Services.Protocols.SoapHeaderDirection.Out)>]
member this.ValidateExtensionSettings : string * ReportService2010.ParameterValueOrFieldReference[] * string -> ReportService2010.ExtensionParameter[]
Public Function ValidateExtensionSettings (Extension As String, ParameterValues As ParameterValueOrFieldReference(), SiteUrl As String) As ExtensionParameter()

Parameters

Extension
String

The name of the extension as it appears in the report server configuration file. Valid values are Report Server Email and Report Server FileShare.

ParameterValues
ParameterValueOrFieldReference[]

An array of ParameterValueOrFieldReference objects representing the settings to validate for the extension.

SiteUrl
String

The fully qualified URL for the SharePoint site.

Set this parameter to null (Nothing in Visual Basic) when invoking this method in Native mode.

Returns

An array of ExtensionParameter objects that contain validated extension settings and any required settings that were not specified.

Attributes

Remarks

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.

Applies to