C# Class NotificationsExtensions.Toasts.ToastContent

Base toast element, which contains at least a visual element.
Inheritance: INotificationContent
Afficher le fichier Open project: WindowsNotifications/NotificationsExtensions Class Usage Examples

Méthodes publiques

Méthode Description
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.

Private Methods

Méthode Description
ConvertToActionsElement ( IToastActions actions ) : NotificationsExtensions.Toasts.Element_ToastActions
ConvertToElement ( ) : NotificationsExtensions.Toasts.Element_Toast

Method Details

GetContent() public méthode

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
Résultat string

GetXml() public méthode

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
Résultat Windows.Data.Xml.Dom.XmlDocument

ToastContent() public méthode

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
Résultat Windows.Data.Xml.Dom