IsolatedWindowsEnvironment.RegisterMessageReceiver 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.
public:
virtual void RegisterMessageReceiver(Platform::Guid receiverId, MessageReceivedCallback ^ messageReceivedCallback) = RegisterMessageReceiver;
void RegisterMessageReceiver(winrt::guid const& receiverId, MessageReceivedCallback const& messageReceivedCallback);
/// [Windows.Foundation.Metadata.Deprecated("IsolatedWindowsEnvironment is deprecated and might not work on all platforms. For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 327680, "Windows.Security.Isolation.IsolatedWindowsEnvironmentContract")]
void RegisterMessageReceiver(winrt::guid const& receiverId, MessageReceivedCallback const& messageReceivedCallback);
public void RegisterMessageReceiver(Guid receiverId, MessageReceivedCallback messageReceivedCallback);
[Windows.Foundation.Metadata.Deprecated("IsolatedWindowsEnvironment 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 void RegisterMessageReceiver(Guid receiverId, MessageReceivedCallback messageReceivedCallback);
function registerMessageReceiver(receiverId, messageReceivedCallback)
Public Sub RegisterMessageReceiver (receiverId As Guid, messageReceivedCallback As MessageReceivedCallback)
Paramètres
- receiverId
-
Guid
Platform::Guid
winrt::guid
GUID pour le récepteur de messages.
- messageReceivedCallback
- MessageReceivedCallback
Message de fonction de rappelReceivedCallback
- Attributs
Remarques
Avertissement
Il s’agit d’une API déconseillée.