Share via


HostMessageReceivedCallback Delegate

Definition

Deprecated. Callback function that will be invoked when a message is sent to the Isolated Windows Environment

public delegate void HostMessageReceivedCallback(Platform::Guid receiverId, IVectorView<Platform::Object ^> ^ message);
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Security.Isolation.IsolatedWindowsEnvironmentContract, 131072)]
/// [Windows.Foundation.Metadata.Guid(4210192378, 36065, 19649, 178, 120, 50, 45, 49, 165, 228, 163)]
class HostMessageReceivedCallback : MulticastDelegate
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Security.Isolation.IsolatedWindowsEnvironmentContract, 131072)]
/// [Windows.Foundation.Metadata.Guid(4210192378, 36065, 19649, 178, 120, 50, 45, 49, 165, 228, 163)]
/// [Windows.Foundation.Metadata.Deprecated("HostMessageReceivedCallback is deprecated and might not work on all platforms. For more info, see MSDN.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 327680, "Windows.Security.Isolation.IsolatedWindowsEnvironmentContract")]
class HostMessageReceivedCallback : MulticastDelegate
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Security.Isolation.IsolatedWindowsEnvironmentContract), 131072)]
[Windows.Foundation.Metadata.Guid(4210192378, 36065, 19649, 178, 120, 50, 45, 49, 165, 228, 163)]
public delegate void HostMessageReceivedCallback(Guid receiverId, IReadOnlyList<object> message);
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Security.Isolation.IsolatedWindowsEnvironmentContract), 131072)]
[Windows.Foundation.Metadata.Guid(4210192378, 36065, 19649, 178, 120, 50, 45, 49, 165, 228, 163)]
[Windows.Foundation.Metadata.Deprecated("HostMessageReceivedCallback 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 delegate void HostMessageReceivedCallback(Guid receiverId, IReadOnlyList<object> message);
var hostMessageReceivedCallbackHandler = function(receiverId, message){
/* Your code */
}
Public Delegate Sub HostMessageReceivedCallback(receiverId As Guid, message As IReadOnlyList(Of Object))

Parameters

receiverId
Guid

Platform::Guid

winrt::guid

GUID for message receiver.

message

IVectorView<Object>

IReadOnlyList<Object>

IVectorView<Platform::Object>

IVectorView<IInspectable>

IIterable

Attributes

Windows requirements

Device family
Windows 10, version 2004 (introduced in 10.0.19041.0)
API contract
Windows.Security.Isolation.IsolatedWindowsEnvironmentContract (introduced in v2.0)

Remarks

Warning

This is a deprecated API.

Applies to