Share via


WidgetMessageReceivedArgs Class

Definition

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
Object Platform::Object IInspectable WidgetMessageReceivedArgs
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.

Applies to