IsolatedWindowsHostMessenger.RegisterHostMessageReceiver Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
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 à
Commentaires
https://aka.ms/ContentUserFeedback.
Bientôt disponible : Tout au long de 2024, nous allons supprimer progressivement GitHub Issues comme mécanisme de commentaires pour le contenu et le remplacer par un nouveau système de commentaires. Pour plus d’informations, consultezEnvoyer et afficher des commentaires pour