ערוך

שתף באמצעות


Implement the IDeliveryExtension interface for a delivery extension

Your delivery extension class is used to deliver report notifications to users based on the contents of the notifications. The delivery extension class also provides infrastructure for validating user settings that are passed to the delivery extension. Your delivery extension class should contain specific properties that clients can use to gain information about the name of the extension. It should also have the settings that the extension supports and the rendering formats that are available to the delivery extension.

Screenshot of the IDeliveryExtension interface process.

The IDeliveryExtension interface allows validation of user data and for clients to learn about the required delivery settings.

To create a delivery extension class, implement IDeliveryExtension and IExtension. The IDeliveryExtension interface enables your delivery extension to deliver report notifications using the Deliver method and to validate incoming extension settings using the ValidateUserData method. The IExtension interface enables your delivery extension to implement a localized extension name and to process extension-specific configuration information stored in the SQL Server configuration file. By implementing IExtension, your delivery extension contains the LocalizedName property. SSRS delivery extensions should support the LocalizedName property, so that users encounter a familiar name for the extension in a user interface, such as Report Manager.

Your delivery extension must also implement the ExtensionSettings property of the IDeliveryExtension interface. The report server uses the value returned by the ExtensionSettings property to evaluate the settings that a delivery extension requires. Clients that interact with delivery extensions use the GetExtensionSettings method of the Report Server Web service to return a list of settings for the delivery extension.

You can also use your delivery extension class to retrieve and process custom configuration data stored in the RSReportServer.config file. For more information about processing custom configuration data, see the SetConfiguration method.

For a sample IDeliveryExtension class implementation, see Reporting Services Samples on CodePlex (SQL Server Reporting Services SSRS).