Export (0) Print
Expand All
Expand Minimize

ReportingService2010.CreateCacheRefreshPlan Method

Creates a cache refresh plan for an item. This method applies to the Report and Dataset item types.

Namespace:  ReportService2010
Assembly:  ReportService2010 (in ReportService2010.dll)

[<SoapHeaderAttribute("ServerInfoHeaderValue", Direction = SoapHeaderDirection.Out)>]
[<SoapDocumentMethodAttribute("http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/CreateCacheRefreshPlan", RequestNamespace = "http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", 
    ResponseNamespace = "http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", 
    Use = SoapBindingUse.Literal, ParameterStyle = SoapParameterStyle.Wrapped)>]
member CreateCacheRefreshPlan : 
        ItemPath:string * 
        Description:string * 
        EventType:string * 
        MatchData:string * 
        Parameters:ParameterValue[] -> string


Type: String
The fully qualified URL of the item with which to associate the cache refresh plan, including the file name and, in SharePoint mode, the extension.
Type: String
The description of the cache refresh plan. If this parameter is set to a null reference (Nothing in Visual Basic) (Nothing in Visual Basic), the report server automatically generates a decription.
Type: String
The type of event that triggers the cache refresh. Currently, the valid value is RefreshCache. If this parameter is set to a null reference (Nothing in Visual Basic) (Nothing is Visual Basic), the default value of RefreshCache is used.
Type: String
The data that is associated with the specified EventType parameter. This must be a serialized ScheduleDefinition specific to the item in ItemPath, or the schedule ID of a shared schedule.
Type: ReportService2010.ParameterValue[]
An array of ParameterValue objects that contains a list of parameters for the item specified in ItemPath.

Return Value

Type: String
A string that represents the unique identifier for the cache refresh plan.

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

SOAP Header Usage

(In) TrustedUserHeaderValue

(Out) ServerInfoHeaderValue

Native Mode Required Permissions

ReadPolicy AND UpdatePolicy

SharePoint Mode Required Permissions

EditListItems AND ViewListItems

The EventType used to create cache refresh plans is RefreshCache. The MatchData parameter depends on the event type. If the event is a TimedSubscription event, a ScheduleDefinition object is required as the MatchData parameter. You must first serialize the ScheduleDefinition object as XML in order to pass it as a string value and create a cache refresh plan based on the schedule.

You can use the XmlSerializer class to convert your object class to an XML string automatically.

The following example loads a report into the cache and refreshes the cache daily.

No code example is currently available or this language may not be supported.

Community Additions

© 2014 Microsoft