AdaptiveNotificationText 类

定义

表示自适应通知的文本内容。

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
继承
Object Platform::Object IInspectable AdaptiveNotificationText
属性
实现

Windows 要求

设备系列
Windows 10 Anniversary Edition (在 10.0.14393.0 中引入)
API contract
Windows.Foundation.UniversalApiContract (在 v3.0 中引入)

构造函数

AdaptiveNotificationText()

创建 AdaptiveNotificationText 类的新实例。

属性

Hints

指定用于设置通知格式的提示,例如文本样式、文本环绕和对齐方式。 有关提示的完整列表,请参阅 自适应通知架构的文本元素条目

Kind

指定通知包含的内容类型。 此属性始终返回 AdaptiveNotificationContentKind.Text

Language

获取或设置文本内容的语言。

Text

获取或设置要显示的文本内容。

适用于

另请参阅