Calendar constructor
Office 2013 and later
Creates a Calendar object from the ASMX-based Calendar web service.
Namespace: WebSvcCalendar
Assembly: ProjectServerServices (in ProjectServerServices.dll)
In the following statement, CalendarWebSvc is an arbitrary namespace for the ASMX-based Calendar web service.
private static CalendarWebSvc.Calendar calendar = new CalendarWebSvc.Calendar();
In the following statement, SvcCalendar is an arbitrary namespace for the WCF-based Calendar service. The endpt parameter is a String value that specifies the name of the client endpoint address in the app.config file (or in the web.config file for web applications).
private static SvcCalendar.CalendarClient calendarClient = new SvcCalendar.CalendarClient(endpt);
Show: