IsolatedWindowsHostMessenger.PostMessageToReceiver 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
已取代。 將訊息從隔離的 Windows 環境張貼到在主機端註冊的接收者。
public:
static void PostMessageToReceiver(Platform::Guid receiverId, IVectorView<Platform::Object ^> ^ message);
static void PostMessageToReceiver(winrt::guid const& receiverId, IVectorView<IInspectable> const& message);
/// [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 PostMessageToReceiver(winrt::guid const& receiverId, IVectorView<IInspectable> const& message);
public static void PostMessageToReceiver(Guid receiverId, IReadOnlyList<object> message);
[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 PostMessageToReceiver(Guid receiverId, IReadOnlyList<object> message);
function postMessageToReceiver(receiverId, message)
Public Shared Sub PostMessageToReceiver (receiverId As Guid, message As IReadOnlyList(Of Object))
參數
- receiverId
-
Guid
Platform::Guid
winrt::guid
訊息接收者的 GUID。
- message
-
IVectorView<Platform::Object>
IVectorView<IInspectable>
IVectorView
- 屬性
備註
警告
這是已被取代的 API。