Share via


HttpNotificationChannel Constructor (String, String)

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

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.

Namespace:  Microsoft.Phone.Notification
Assembly:  Microsoft.Phone (in Microsoft.Phone.dll)

Syntax

Public Sub New ( _
    channelName As String, _
    serviceName As String _
)
public HttpNotificationChannel(
    string channelName,
    string serviceName
)

Parameters

  • channelName
    Type: System..::.String
    The name that the application uses to identify the notification channel instance.
  • serviceName
    Type: System..::.String
    The name that the web service uses to associate itself with the Push Notification Service.

Remarks

Use the fully qualified domain name (FQDN) as the service name. While this is not required for unauthenticated web services, it is a best practice. For authenticated web services, this FQDN must match the registered certificate’s subject name (the CN attribute). For example, www.contoso.com.

For more information about authenticated web services, see Setting up an authenticated web service to send push notifications for Windows Phone 8.

Version Information

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Platforms

Windows Phone

See Also

Reference

HttpNotificationChannel Class

HttpNotificationChannel Overload

Microsoft.Phone.Notification Namespace