Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

PushNotificationChannel.Close | close method

Applies to Windows and Windows Phone

Explicitly invalidates this channel. Any notifications pushed to this channel after this method is called are not delivered.

Syntax


pushNotificationChannel.close();

Parameters

This method has no parameters.

Remarks

After it has been closed, the channel can never be used again. Channels that are closed through this method are no different than channels that have expired. To resume sending push notifications to this app, the app must request a new channel.

Calling Closeon a channel invalidates the underlying URI as well as any non-expired, non-closed URIs previously created for the app.

Requirements

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Minimum supported phone

Windows Phone 8.1 [Windows Phone Silverlight 8.1 and Windows Runtime apps]

Namespace

Windows.Networking.PushNotifications
Windows::Networking::PushNotifications [C++]

Metadata

Windows.winmd

Capabilities

internetClient

See also

PushNotificationChannel
WNS overview
Push and periodic notifications sample
Quickstart: Sending a tile push notification
Quickstart: Sending a toast push notification
How to update a badge through push notifications
How to authenticate with the Windows Push Notification Service (WNS)
How to request, create, and save a notification channel
Guidelines and checklist for push notifications
Push notification service request and response headers

 

 

Show:
© 2014 Microsoft