Partager via


Méthode ValidateUserData

Used to determine whether a given set of delivery extension settings are valid.

Espace de noms :  Microsoft.ReportingServices.Interfaces
Assemblys :   Microsoft.ReportingServices.Interfaces (en Microsoft.ReportingServices.Interfaces.dll)
  Microsoft.ReportingServices.SharePoint.UI.WebParts (en Microsoft.ReportingServices.SharePoint.UI.WebParts.dll)

Syntaxe

'Déclaration
<StrongNameIdentityPermissionAttribute(SecurityAction.LinkDemand, PublicKey := "0024000004800000940000000602000000240000525341310004000001000100272736ad6e5f9586bac2d531eabc3acc666c2f8ec879fa94f8f7b0327d2ff2ed523448f83c3d5c5dd2dfc7bc99c5286b2c125117bf5cbe242b9d41750732b2bdffe649c6efb8e5526d526fdd130095ecdb7bf210809c6cdad8824faa9ac0310ac3cba2aa0523567b2dfa7fe250b30facbd62d4ec99b94ac47c7d3b28f1f6e4c8")> _
Function ValidateUserData ( _
    settings As Setting() _
) As Setting()
'Utilisation
Dim instance As IDeliveryExtension
Dim settings As Setting()
Dim returnValue As Setting()

returnValue = instance.ValidateUserData(settings)
[StrongNameIdentityPermissionAttribute(SecurityAction.LinkDemand, PublicKey = "0024000004800000940000000602000000240000525341310004000001000100272736ad6e5f9586bac2d531eabc3acc666c2f8ec879fa94f8f7b0327d2ff2ed523448f83c3d5c5dd2dfc7bc99c5286b2c125117bf5cbe242b9d41750732b2bdffe649c6efb8e5526d526fdd130095ecdb7bf210809c6cdad8824faa9ac0310ac3cba2aa0523567b2dfa7fe250b30facbd62d4ec99b94ac47c7d3b28f1f6e4c8")]
Setting[] ValidateUserData(
    Setting[] settings
)
[StrongNameIdentityPermissionAttribute(SecurityAction::LinkDemand, PublicKey = L"0024000004800000940000000602000000240000525341310004000001000100272736ad6e5f9586bac2d531eabc3acc666c2f8ec879fa94f8f7b0327d2ff2ed523448f83c3d5c5dd2dfc7bc99c5286b2c125117bf5cbe242b9d41750732b2bdffe649c6efb8e5526d526fdd130095ecdb7bf210809c6cdad8824faa9ac0310ac3cba2aa0523567b2dfa7fe250b30facbd62d4ec99b94ac47c7d3b28f1f6e4c8")]
array<Setting^>^ ValidateUserData(
    array<Setting^>^ settings
)
[<StrongNameIdentityPermissionAttribute(SecurityAction.LinkDemand, PublicKey = "0024000004800000940000000602000000240000525341310004000001000100272736ad6e5f9586bac2d531eabc3acc666c2f8ec879fa94f8f7b0327d2ff2ed523448f83c3d5c5dd2dfc7bc99c5286b2c125117bf5cbe242b9d41750732b2bdffe649c6efb8e5526d526fdd130095ecdb7bf210809c6cdad8824faa9ac0310ac3cba2aa0523567b2dfa7fe250b30facbd62d4ec99b94ac47c7d3b28f1f6e4c8")>]
abstract ValidateUserData : 
        settings:Setting[] -> Setting[] 
function ValidateUserData(
    settings : Setting[]
) : Setting[]

Paramètres

Valeur de retour

Type : array<Microsoft.ReportingServices.Interfaces. . :: . .Setting> [] () [] []
An array of Setting objects containing extension settings that have been validated by the delivery extension.

Notes

The ValidateUserData method is called whenever a subscription is created or modified. You should add code to the ValidateUserData method to ensure that the values that a user has chosen for a delivery extension's settings meet the requirements for delivery. For example, in e-mail delivery, you might want to ensure that the e-mail address that is supplied by the user conforms to e-mail formatting standards. In printer delivery, you might want to validate the printer that a user chooses against the known list of installed printers on the server.

If a particular setting that you validate contains an error condition, you should set the Error property of the setting that is not valid. In addition, you can add default values for settings that are missing to prevent the delivery from failing.