AppCapability.DisplayMessage Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
The purpose of why the capability is being accessed.
public:
property Platform::String ^ DisplayMessage { Platform::String ^ get(); void set(Platform::String ^ value); };
winrt::hstring DisplayMessage();
void DisplayMessage(winrt::hstring value);
public string DisplayMessage { get; set; }
var string = appCapability.displayMessage;
appCapability.displayMessage = string;
Public Property DisplayMessage As String
Property Value
The stored display message as a string property.
Windows requirements
Device family |
Windows 11 Insider Preview (introduced in 10.0.23504.0)
|
API contract |
Windows.Foundation.UniversalApiContract (introduced in v15.0)
|
Remarks
The display message, if specified, appears in the system tray and settings app under Privacy & security > App permissions pages while the capability is in use. Display messages should be provided before the capability is accessed and should continue to be provided until the app terminates access to the capability.