C# Класс NotificationsExtensions.Toasts.ToastContent

Base toast element, which contains at least a visual element.
Наследование: INotificationContent
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
GetContent ( ) : string

Retrieves the notification XML content as a string, so that it can be sent with a HTTP POST in a push notification.

GetXml ( ) : XmlDocument

Retrieves the notification XML content as a WinRT XmlDocument, so that it can be used with a local toast notification's constructor on either Windows.UI.Notifications.ToastNotification or Windows.UI.Notifications.ScheduledToastNotification.

ToastContent ( ) : Windows.Data.Xml.Dom

Initializes a new instance of toast content. You must then set the Visual property, which is required for a toast notification. You can optionally set Audio, Actions, and more.

Приватные методы

Метод Описание
ConvertToActionsElement ( IToastActions actions ) : NotificationsExtensions.Toasts.Element_ToastActions
ConvertToElement ( ) : NotificationsExtensions.Toasts.Element_Toast

Описание методов

GetContent() публичный Метод

Retrieves the notification XML content as a string, so that it can be sent with a HTTP POST in a push notification.
public GetContent ( ) : string
Результат string

GetXml() публичный Метод

Retrieves the notification XML content as a WinRT XmlDocument, so that it can be used with a local toast notification's constructor on either Windows.UI.Notifications.ToastNotification or Windows.UI.Notifications.ScheduledToastNotification.
public GetXml ( ) : XmlDocument
Результат Windows.Data.Xml.Dom.XmlDocument

ToastContent() публичный Метод

Initializes a new instance of toast content. You must then set the Visual property, which is required for a toast notification. You can optionally set Audio, Actions, and more.
public ToastContent ( ) : Windows.Data.Xml.Dom
Результат Windows.Data.Xml.Dom