Notifications Constructor

Creates an Notifications object from the ASMX-based Notifications web service.

Namespace:  [Notifications Web service]
Service reference: http://ServerName:32843/[Project Service Application GUID]/PSI/Notifications.svc
Web service reference: http://ServerName/ProjectServerName/_vti_bin/PSI/Notifications.asmx?wsdl

Syntax

'Declaration
Public Sub New
'Usage

Dim instance As New Notifications()
public Notifications()

Remarks

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

Examples

In the following statement, NotificationsWebSvc is an arbitrary namespace for the ASMX-based Notifications web service.

private static NotificationsWebSvc.Notifications notifications = new NotificationsWebSvc.Notifications();

In the following statement, SvcNotifications is an arbitrary namespace for the WCF-based Notifications 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 SvcNotifications.NotificationsClient notificationsClient = new SvcNotifications.NotificationsClient(endpt);

See Also

Reference

Notifications Class

Notifications Members

Notifications Web Service