NotificationVisual NotificationVisual NotificationVisual NotificationVisual Class

Definition

Represents the visual element of a notification. The visual element contains bindings, which contain the text and other visual content for the notification.

public : sealed class NotificationVisual : INotificationVisualpublic sealed class NotificationVisual : INotificationVisualPublic NotInheritable Class NotificationVisual Implements INotificationVisual// You can use this class in JavaScript.
Attributes
Windows 10 requirements
Device family
Windows 10 Anniversary Edition (introduced v10.0.14393.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v3)

Properties

Bindings Bindings Bindings Bindings

Gets the bindings for this notification visual. Bindings contain text and other visual content for the notification.

public : IVector<NotificationBinding> Bindings { get; }public IList<NotificationBinding> Bindings { get; }Public ReadOnly Property Bindings As IList<NotificationBinding>// You can use this property in JavaScript.
Value
IVector<NotificationBinding> IList<NotificationBinding> IList<NotificationBinding> IList<NotificationBinding>

A collection of bindings for this notification visual.

Language Language Language Language

Gets or sets the language for this notification visual.

public : PlatForm::String Language { get; set; }public string Language { get; set; }Public ReadWrite Property Language As string// You can use this property in JavaScript.
Value
PlatForm::String string string string

The language of this notification visual. See the National Language Support (NLS) API Reference for a list of valid values.

Methods

GetBinding(String) GetBinding(String) GetBinding(String) GetBinding(String)

Retrieves the binding with the specified template.

public : NotificationBinding GetBinding(PlatForm::String templateName)public NotificationBinding GetBinding(String templateName)Public Function GetBinding(templateName As String) As NotificationBinding// You can use this method in JavaScript.
Parameters
templateName
PlatForm::String String String String

The template for the binding visual. You can use the properties of the KnownNotificationBindings class to retrieve the string for each of the available template types.

Returns

The binding with the specified template, if it exists; otherwise, null.

See Also