Export (0) Print
Expand All

ReportingService2010::CreateSchedule Method (String^, ScheduleDefinition^, String^)

 

Applies To: SQL Server 2016 Preview

Creates a new shared schedule.

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

public:
[SoapHeaderAttribute("TrustedUserHeaderValue")]
[SoapDocumentMethodAttribute("http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/CreateSchedule", 
	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)]
[SoapHeaderAttribute("ServerInfoHeaderValue", Direction = SoapHeaderDirection::Out)]
String^ CreateSchedule(
	String^ Name,
	ScheduleDefinition^ ScheduleDefinition,
	String^ SiteUrl
)

Parameters

Name
Type: System::String^

The name of the schedule.

ScheduleDefinition
Type: ReportService2010::ScheduleDefinition^

A ScheduleDefinition object that defines the properties and values for the schedule.

SiteUrl
Type: System::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.

Return Value

Type: System::String^

A String value that represents the ID of the newly created schedule.

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

SOAP Header Usage

(In) TrustedUserHeaderValue

(Out) ServerInfoHeaderValue

Native Mode Required Permissions

CreateSchedules (System)

SharePoint Mode Required Permissions

ManageWeb

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

If an error occurs when the CreateSchedule method runs, the schedule is not created and no schedule ID is returned.

The MonthlyDOWRecurrence pattern is not supported in SharePoint integrated mode.

Legacy Code Example

No code example is currently available or this language may not be supported.
Return to top
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2015 Microsoft