共用方式為


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

取得或設定要顯示的文字內容。

適用於

另請參閱