IsolatedWindowsHostMessenger.RegisterHostMessageReceiver Method
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.
Deprecated. Register host message receiver callback.
public:
static void RegisterHostMessageReceiver(Platform::Guid receiverId, HostMessageReceivedCallback ^ hostMessageReceivedCallback);
static void RegisterHostMessageReceiver(winrt::guid const& receiverId, HostMessageReceivedCallback const& hostMessageReceivedCallback);
/// [Windows.Foundation.Metadata.Deprecated("IsolatedWindowsHostMessenger is deprecated and might not work on all platforms. For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 327680, "Windows.Security.Isolation.IsolatedWindowsEnvironmentContract")]
static void RegisterHostMessageReceiver(winrt::guid const& receiverId, HostMessageReceivedCallback const& hostMessageReceivedCallback);
public static void RegisterHostMessageReceiver(Guid receiverId, HostMessageReceivedCallback hostMessageReceivedCallback);
[Windows.Foundation.Metadata.Deprecated("IsolatedWindowsHostMessenger is deprecated and might not work on all platforms. For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 327680, "Windows.Security.Isolation.IsolatedWindowsEnvironmentContract")]
public static void RegisterHostMessageReceiver(Guid receiverId, HostMessageReceivedCallback hostMessageReceivedCallback);
function registerHostMessageReceiver(receiverId, hostMessageReceivedCallback)
Public Shared Sub RegisterHostMessageReceiver (receiverId As Guid, hostMessageReceivedCallback As HostMessageReceivedCallback)
Parameters
- receiverId
-
Guid
Platform::Guid
winrt::guid
GUID for message receiver.
- hostMessageReceivedCallback
- HostMessageReceivedCallback
Callback function hostmessageReceivedCallback
- Attributes
Remarks
Warning
This is a deprecated API.
Applies to
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for