WidgetMessageReceivedArgs Class
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.
Provides data for the IWidgetProviderMessage.OnMessageReceived event which is raised when the widget's content posts a message using the window.chrome.webview.postMessage JavaScript method.
public ref class WidgetMessageReceivedArgs sealed
/// [Windows.Foundation.Metadata.ContractVersion(Microsoft.Windows.Widgets.WidgetContract, 393216)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class WidgetMessageReceivedArgs final
[Windows.Foundation.Metadata.ContractVersion(typeof(Microsoft.Windows.Widgets.WidgetContract), 393216)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public sealed class WidgetMessageReceivedArgs
Public NotInheritable Class WidgetMessageReceivedArgs
- Inheritance
- Attributes
Properties
Message |
Gets a string containing the contents of the message that was posted from the widget's web content using the window.chrome.webview.postMessage JavaScript method. |
WidgetContext |
Gets the WidgetContext object associated with the Microsoft.Windows.Widgets.Providers.IWidgetProvider.OnWidgetContextChanged callback. |