IFeedProviderMessage.OnMessageReceived(FeedMessageReceivedArgs) Method

Definition

Raised when the feed's content posts a message using the window.chrome.webview.postMessage JavaScript method.

public:
 void OnMessageReceived(FeedMessageReceivedArgs ^ args);
void OnMessageReceived(FeedMessageReceivedArgs const& args);
public void OnMessageReceived(FeedMessageReceivedArgs args);
function onMessageReceived(args)
Public Sub OnMessageReceived (args As FeedMessageReceivedArgs)

Parameters

args
FeedMessageReceivedArgs

A FeedMessageReceivedArgs that provides details about the message that triggered the event.

Remarks

The calls to window.chrome.webview.postMessage in the feed content must use a targetOrigin that matches the origin of the feed registration, specified in the ContentUri attribute of the Definition element in the provider's package manifest file. For more information see Feed provider package manifest XML format.

Applies to