Notifications 构造函数

从基于 ASMX 的Notifications web 服务创建Notifications对象。

命名空间:  WebSvcNotifications
程序集:  ProjectServerServices(位于 ProjectServerServices.dll 中)

语法

声明
Public Sub New
用法

Dim instance As New Notifications()
public Notifications()

备注

若要创建使用 Windows Communication Foundation (WCF) API 等效Notifications对象,请使用NotificationsClient构造函数之一。

示例

在下面的语句, NotificationsWebSvc是基于 ASMX 的Notifications web 服务任意命名空间。

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

在下面的语句, SvcNotifications是基于 WCF 的Notifications服务任意命名空间。endpt参数是一个String值,指定客户端终结点地址的名称,在 app.config 文件 (或 web 应用程序的 web.config 文件中)。

private static SvcNotifications.NotificationsClient notificationsClient = new SvcNotifications.NotificationsClient(endpt);

另请参阅

引用

Notifications 类

Notifications 成员

WebSvcNotifications 命名空间