共用方式為


IsolatedWindowsEnvironment.PostMessageToReceiverAsync 方法

定義

多載

PostMessageToReceiverAsync(Guid, IIterable<Object>, IsolatedWindowsEnvironmentTelemetryParameters)

已取代。 將訊息從主機張貼到在隔離 Windows 環境端註冊的接收者,並與遙測事件相互關聯。

PostMessageToReceiverAsync(Guid, IIterable<Object>)

已取代。 將訊息從主機張貼到在隔離 Windows 環境端註冊的接收者。

PostMessageToReceiverAsync(Guid, IIterable<Object>, IsolatedWindowsEnvironmentTelemetryParameters)

已取代。 將訊息從主機張貼到在隔離 Windows 環境端註冊的接收者,並與遙測事件相互關聯。

public:
 virtual IAsyncOperation<IsolatedWindowsEnvironmentPostMessageResult ^> ^ PostMessageToReceiverAsync(Platform::Guid receiverId, IIterable<Platform::Object ^> ^ message, IsolatedWindowsEnvironmentTelemetryParameters ^ telemetryParameters) = PostMessageToReceiverAsync;
/// [Windows.Foundation.Metadata.Overload("PostMessageToReceiverWithTelemetryAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<IsolatedWindowsEnvironmentPostMessageResult> PostMessageToReceiverAsync(winrt::guid const& receiverId, IIterable<IInspectable> const& message, IsolatedWindowsEnvironmentTelemetryParameters const& telemetryParameters);
/// [Windows.Foundation.Metadata.Overload("PostMessageToReceiverWithTelemetryAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
/// [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")]
IAsyncOperation<IsolatedWindowsEnvironmentPostMessageResult> PostMessageToReceiverAsync(winrt::guid const& receiverId, IIterable<IInspectable> const& message, IsolatedWindowsEnvironmentTelemetryParameters const& telemetryParameters);
[Windows.Foundation.Metadata.Overload("PostMessageToReceiverWithTelemetryAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<IsolatedWindowsEnvironmentPostMessageResult> PostMessageToReceiverAsync(Guid receiverId, IEnumerable<object> message, IsolatedWindowsEnvironmentTelemetryParameters telemetryParameters);
[Windows.Foundation.Metadata.Overload("PostMessageToReceiverWithTelemetryAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
[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 IAsyncOperation<IsolatedWindowsEnvironmentPostMessageResult> PostMessageToReceiverAsync(Guid receiverId, IEnumerable<object> message, IsolatedWindowsEnvironmentTelemetryParameters telemetryParameters);
function postMessageToReceiverAsync(receiverId, message, telemetryParameters)
Public Function PostMessageToReceiverAsync (receiverId As Guid, message As IEnumerable(Of Object), telemetryParameters As IsolatedWindowsEnvironmentTelemetryParameters) As IAsyncOperation(Of IsolatedWindowsEnvironmentPostMessageResult)

參數

receiverId
Guid

Platform::Guid

winrt::guid

訊息接收者的 GUID。

message

IIterable<Object>

IEnumerable<Object>

IIterable<Platform::Object>

IIterable<IInspectable>

IIterable

傳回

IsolatedWindowsEnvironmentPostMessageResult

屬性

備註

警告

這是已被取代的 API。

另請參閱

適用於

PostMessageToReceiverAsync(Guid, IIterable<Object>)

已取代。 將訊息從主機張貼到在隔離 Windows 環境端註冊的接收者。

public:
 virtual IAsyncOperation<IsolatedWindowsEnvironmentPostMessageResult ^> ^ PostMessageToReceiverAsync(Platform::Guid receiverId, IIterable<Platform::Object ^> ^ message) = PostMessageToReceiverAsync;
/// [Windows.Foundation.Metadata.Overload("PostMessageToReceiverAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<IsolatedWindowsEnvironmentPostMessageResult> PostMessageToReceiverAsync(winrt::guid const& receiverId, IIterable<IInspectable> const& message);
/// [Windows.Foundation.Metadata.Overload("PostMessageToReceiverAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
/// [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")]
IAsyncOperation<IsolatedWindowsEnvironmentPostMessageResult> PostMessageToReceiverAsync(winrt::guid const& receiverId, IIterable<IInspectable> const& message);
[Windows.Foundation.Metadata.Overload("PostMessageToReceiverAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<IsolatedWindowsEnvironmentPostMessageResult> PostMessageToReceiverAsync(Guid receiverId, IEnumerable<object> message);
[Windows.Foundation.Metadata.Overload("PostMessageToReceiverAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
[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 IAsyncOperation<IsolatedWindowsEnvironmentPostMessageResult> PostMessageToReceiverAsync(Guid receiverId, IEnumerable<object> message);
function postMessageToReceiverAsync(receiverId, message)
Public Function PostMessageToReceiverAsync (receiverId As Guid, message As IEnumerable(Of Object)) As IAsyncOperation(Of IsolatedWindowsEnvironmentPostMessageResult)

參數

receiverId
Guid

Platform::Guid

winrt::guid

訊息接收者的 GUID。

message

IIterable<Object>

IEnumerable<Object>

IIterable<Platform::Object>

IIterable<IInspectable>

IIterable

傳回

IsolatedWindowsEnvironmentPostMessageResult

屬性

備註

警告

這是已被取代的 API。

另請參閱

適用於