IsolatedWindowsEnvironment.RegisterMessageReceiver 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
已取代。 註冊訊息接收者回呼。
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)
參數
- receiverId
-
Guid
Platform::Guid
winrt::guid
訊息接收者的 GUID。
- messageReceivedCallback
- MessageReceivedCallback
回呼函式 訊息ReceivedCallback
- 屬性
備註
警告
這是已被取代的 API。