Share via


Calendar constructor

Creates a Calendar object from the ASMX-based Calendar web service.

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

Syntax

'Declaration
Public Sub New
'Usage

Dim instance As New Calendar()
public Calendar()

Remarks

To create an object that is equivalent to Calendar by using the Windows Communication Foundation (WCF) API, use one of the CalendarClient constructors.

Examples

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);

See also

Reference

Calendar class

Calendar members

WebSvcCalendar namespace