IsolatedWindowsHostMessenger.PostMessageToReceiver 方法

定义

已弃用。 将消息从独立 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<Object>

IReadOnlyList<Object>

IVectorView<Platform::Object>

IVectorView<IInspectable>

IVectorView

属性

注解

警告

这是一个已弃用的 API。

适用于