This topic has not yet been rated - Rate this topic

HttpNotificationChannel Class

July 26, 2012

Creates a notification channel between the Microsoft Push Notification Service and the Push Client and creates a new subscription for raw notifications.

System.Object
  Microsoft.Phone.Notification.HttpNotificationChannel

Namespace:  Microsoft.Phone.Notification
Assembly:  Microsoft.Phone (in Microsoft.Phone.dll)
public class HttpNotificationChannel : IDisposable

The HttpNotificationChannel type exposes the following members.

  NameDescription
Public methodHttpNotificationChannel(String)Creates a notification channel. The application will identify the notification channel using the channelName value.
Public methodHttpNotificationChannel(String, String)Creates a notification channel. Use this constructor with an authenticated web service. The application will identify the notification channel using the channelName value. The serviceName value identifies the Subject Name of the authenticated web service's certificate.
Top
  NameDescription
Public propertyChannelNameThe name of the notification channel.
Public propertyChannelUriThe current active notification channel URI.
Public propertyConnectionStatusGet the current channel connection status.
Public propertyIsShellTileBoundIndicates whether the notification channel is currently bound to a Tile notification subscription.
Public propertyIsShellToastBoundIndicates whether the notification channel is currently bound to a toast notification subscription.
Top
  NameDescription
Public methodBindToShellTile()Binds the application’s default Tile with a notification subscription. The Tile can contain only local references for resources.
Public methodBindToShellTile(Collection<Uri>)Binds the Tile passed as the input parameter with a notification subscription. The Tile can contain either a local or remote resource reference.
Public methodBindToShellToastBinds a toast notification subscription to the HttpNotificationChannel class instance.
Public methodCloseCloses a notification channel and disassociates all of the subscriptions associated with this instance of the HttpNotificationChannel class.
Public methodDisposeDisposes the class.
Public methodEquals (Inherited from Object.)
Protected methodFinalizeFrees resources and performs cleanup operations before the class instance is reclaimed by garbage collection. (Overrides Object.Finalize().)
Public methodStatic memberFindFinds a previously created notification channel.
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Protected methodMemberwiseClone (Inherited from Object.)
Public methodOpenOpens a notification channel with the Microsoft Push Notification Service.
Public methodToString (Inherited from Object.)
Public methodUnbindToShellTileUnbinds the active Tile notification subscription from the notification channel.
Public methodUnbindToShellToastUnbinds the active toast notification subscription from the notification channel.
Top
  NameDescription
Public eventChannelUriUpdatedReturns the URI associated with the notification channel.
Public eventConnectionStatusChangedOccurs when the connection status has changed.
Public eventErrorOccurredRaised when something unexpected happens when using the HttpNotificationChannel class.
Public eventHttpNotificationReceivedRaised when the application receives a raw notification.
Public eventShellToastNotificationReceivedRaised when the application receives a toast notification.
Top

For more information about push notifications, see Push Notifications Overview for Windows Phone.

Windows Phone OS

Supported in: 7.1, 7.0

Windows Phone

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Did you find this helpful?
(1500 characters remaining)
© 2013 Microsoft. All rights reserved.