次の方法で共有


Notifications コンストラクター

Notificationsの ASMX ベース web サービスからは、 Notificationsオブジェクトを作成します。

名前空間:  WebSvcNotifications
アセンブリ:  ProjectServerServices (ProjectServerServices.dll 内)

構文

'宣言
Public Sub New
'使用

Dim instance As New Notifications()
public Notifications()

注釈

Windows 通信基盤 (WCF) API を使用するNotificationsと等価であるオブジェクトを作成するのには、 NotificationsClientコンス トラクターのいずれかを使用します。

次のステートメントではNotificationsWebSvcは、 Notificationsの ASMX ベース web サービスを任意の名前空間です。

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

次のステートメントではSvcNotificationsは、任意の WCF ベースのNotificationsサービスの名前空間です。endptパラメーターは、app.config ファイル内に (または web アプリケーションの web.config ファイルで)、クライアントのエンドポイント アドレスの名前を指定するString値です。

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

関連項目

参照先

Notifications クラス

Notifications メンバー

WebSvcNotifications 名前空間