Calendar.ListCalendars Method

Gets a list of all enterprise calendars.

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

Syntax

'Declaration
<SoapDocumentMethodAttribute("http://schemas.microsoft.com/office/project/server/webservices/Calendar/ListCalendars", 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 Function ListCalendars As CalendarDataSet
'Usage
Dim instance As Calendar
Dim returnValue As CalendarDataSet

returnValue = instance.ListCalendars()
[SoapDocumentMethodAttribute("http://schemas.microsoft.com/office/project/server/webservices/Calendar/ListCalendars", 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 CalendarDataSet ListCalendars()

Return Value

Type: WebSvcCalendar.CalendarDataSet

Remarks

The ListCalendars method supports only calendar exceptions for enterprise calendars, not all enterprise calendar functionality in Microsoft Office Project Server 2007.

Project Server Permissions

One of the following permissions is required.

Permission

Description

ManageEnterpriseCalendars

Manage enterprise calendars. Global permission.

LogOnToProjectServerFromProjectProfessional

Connect to the Project Server database from Project Professional. Global permission.

ManageUsersAndGroups

Manage Project Server users and groups. Global permission.

NewResource

Create a new resource. Global permission.

EditEnterpriseResourceData

Edit or delete the specified resource. Category permission.

See Also

Reference

Calendar Class

Calendar Members

WebSvcCalendar Namespace