Share via


PushNotificationChannel.Close Method

Definition

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

public:
 virtual void Close() = Close;
void Close();
public void Close();
function close()
Public Sub Close ()

Windows requirements

App capabilities
internetClient

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 Close on a channel invalidates the underlying URI as well as any non-expired, non-closed URIs previously created for the app.

Applies to

See also