O'Reilly logo

Windows® Phone 8 Unleashed by Daniel Vaughan

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Handling Channel Errors

When a channel error occurs, the NotificationChannelErrorEventArgs.ErrorType property can be used to determine the nature of the error, as the following excerpt demonstrates:

void HandleChannelErrorOccurred(    object sender, NotificationChannelErrorEventArgs e){    switch (e.ErrorType)    {        case ChannelErrorType.ChannelOpenFailed:            // ...            break;        case ChannelErrorType.MessageBadContent:            // ...            break;        case ChannelErrorType.NotificationRateTooHigh:            // ...            break;        case ChannelErrorType.PayloadFormatError:            // ...            break;        case ChannelErrorType.PowerLevelChanged:            // ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required