AdaptiveNotificationText Class

Definition

Represents the text content of an adaptive notification.

public ref class AdaptiveNotificationText sealed
public ref class AdaptiveNotificationText sealed : IAdaptiveNotificationContent
/// [Windows.Foundation.Metadata.Activatable(196608, "Windows.Foundation.UniversalApiContract")]
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 196608)]
class AdaptiveNotificationText final
/// [Windows.Foundation.Metadata.Activatable(196608, "Windows.Foundation.UniversalApiContract")]
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 196608)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class AdaptiveNotificationText final : IAdaptiveNotificationContent
[Windows.Foundation.Metadata.Activatable(196608, "Windows.Foundation.UniversalApiContract")]
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 196608)]
public sealed class AdaptiveNotificationText
[Windows.Foundation.Metadata.Activatable(196608, "Windows.Foundation.UniversalApiContract")]
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 196608)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class AdaptiveNotificationText : IAdaptiveNotificationContent
function AdaptiveNotificationText()
Public NotInheritable Class AdaptiveNotificationText
Public NotInheritable Class AdaptiveNotificationText
Implements IAdaptiveNotificationContent
Inheritance
Object IInspectable AdaptiveNotificationText
Attributes
Implements

Windows requirements

Device family
Windows 10 Anniversary Edition (introduced in 10.0.14393.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v3.0)

Constructors

AdaptiveNotificationText()

Creates a new instance of the AdaptiveNotificationText class.

Properties

Hints

Specifies hints for formatting the notification, such as the text style, text wrapping, and alignment. For a complete list of hints, see the text element entry of the Adaptive notifications schema.

Kind

Specifies the type of content the notification contains. This property always returns AdaptiveNotificationContentKind.Text.

Language

Gets or sets the language of the text content.

Text

Gets or sets the text content to display.

Applies to

See also