Share via


InfoBar.Message 屬性

定義

取得或設定 InfoBar 的訊息。

public:
 property Platform::String ^ Message { Platform::String ^ get(); void set(Platform::String ^ value); };
winrt::hstring Message();

void Message(winrt::hstring value);
/// [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyChangedCallback(enable=true)]
/// [get: Microsoft.UI.Xaml.CustomAttributes.MUXPropertyChangedCallback(enable=true)]
/// [set: Microsoft.UI.Xaml.CustomAttributes.MUXPropertyChangedCallback(enable=true)]
winrt::hstring Message();

void Message(winrt::hstring value);
public string Message { get; set; }
[Microsoft.UI.Xaml.CustomAttributes.MUXPropertyChangedCallback(enable=true)]
public string Message { [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyChangedCallback(enable=true)] get; [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyChangedCallback(enable=true)] set; }
var string = infoBar.message;
infoBar.message = string;
Public Property Message As String

屬性值

String

Platform::String

winrt::hstring

InfoBar 的訊息。 預設為空字串。

屬性
Microsoft.UI.Xaml.CustomAttributes.MUXPropertyChangedCallbackAttribute

適用於