Partager via


IsolatedWindowsHostMessenger.RegisterHostMessageReceiver Méthode

Définition

Action déconseillée. Inscrire le rappel du récepteur de messages de l’hôte.

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)

Paramètres

receiverId
Guid

Platform::Guid

winrt::guid

GUID pour le récepteur de messages.

hostMessageReceivedCallback
HostMessageReceivedCallback

Fonction de rappel hostmessageReceivedCallback

Attributs

Remarques

Avertissement

Il s’agit d’une API déconseillée.

S’applique à