Calendar.UpdateCalendars Method

Adds or deletes enterprise calendar exceptions. UpdateCalendars adds new exceptions and deletes exceptions that are absent in the CalendarDataSet object.

Namespace:  WebSvcCalendar
Assembly:  ProjectServerWebServices (in ProjectServerWebServices.dll)

Syntax

'Declaration
<SoapDocumentMethodAttribute("http://schemas.microsoft.com/office/project/server/webservices/Calendar/UpdateCalendars", RequestNamespace := "http://schemas.microsoft.com/office/project/server/webservices/Calendar/",  _
    ResponseNamespace := "http://schemas.microsoft.com/office/project/server/webservices/Calendar/",  _
    Use := SoapBindingUse.Literal, ParameterStyle := SoapParameterStyle.Wrapped)> _
Public Sub UpdateCalendars ( _
    calendarDataSet As CalendarDataSet, _
    validateOnly As Boolean, _
    autoCheckIn As Boolean _
)
'Usage
Dim instance As Calendar
Dim calendarDataSet As CalendarDataSet
Dim validateOnly As Boolean
Dim autoCheckIn As Boolean

instance.UpdateCalendars(calendarDataSet, _
    validateOnly, autoCheckIn)
[SoapDocumentMethodAttribute("http://schemas.microsoft.com/office/project/server/webservices/Calendar/UpdateCalendars", RequestNamespace = "http://schemas.microsoft.com/office/project/server/webservices/Calendar/", 
    ResponseNamespace = "http://schemas.microsoft.com/office/project/server/webservices/Calendar/", 
    Use = SoapBindingUse.Literal, ParameterStyle = SoapParameterStyle.Wrapped)]
public void UpdateCalendars(
    CalendarDataSet calendarDataSet,
    bool validateOnly,
    bool autoCheckIn
)

Parameters

Remarks

The UpdateCalendars method supports only calendar exceptions for enterprise calendars, not all enterprise calendar functionality in Microsoft Office Project Server 2007. You can add or delete time off for Project Server resources as calendar exceptions by using the WebSvcResource namespace.

This method does not modify enterprise calendar exceptions. If updates are required, you must delete and recreate calendar exceptions.

Work weeks in enterprise calendars are not normalized in the Published database. Work week information is stored as binary data, so there are no direct queries available to load all calendar information to a CalendarDataSet.

Project Server Permissions

Permission

Description

ManageEnterpriseCalendars

Manage enterprise calendars. Global permission.

See Also

Reference

Calendar Class

Calendar Members

WebSvcCalendar Namespace