HttpNotificationChannel Class

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(Object)Determines whether the specified Object is equal to the current Object. (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 methodGetHashCodeServes as a hash function for a particular type. (Inherited from Object.)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodOpenOpens a notification channel with the Microsoft Push Notification Service.
Public methodToStringReturns a string that represents the current object. (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 for Windows Phone 8.

Windows Phone OS

Supported in: 8.1, 8.0, 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.

Show:
© 2015 Microsoft