Sdílet prostřednictvím


MessageReceivedCallback Delegate

Definition

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

public delegate void MessageReceivedCallback(Platform::Guid receiverId, IVectorView<Platform::Object ^> ^ message);
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Security.Isolation.IsolatedWindowsEnvironmentContract, 65536)]
/// [Windows.Foundation.Metadata.Guid(4122265855, 7581, 18837, 159, 234, 77, 21, 37, 124, 7, 87)]
class MessageReceivedCallback : MulticastDelegate
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Security.Isolation.IsolatedWindowsEnvironmentContract, 65536)]
/// [Windows.Foundation.Metadata.Guid(4122265855, 7581, 18837, 159, 234, 77, 21, 37, 124, 7, 87)]
/// [Windows.Foundation.Metadata.Deprecated("MessageReceivedCallback 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 MessageReceivedCallback : MulticastDelegate
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Security.Isolation.IsolatedWindowsEnvironmentContract), 65536)]
[Windows.Foundation.Metadata.Guid(4122265855, 7581, 18837, 159, 234, 77, 21, 37, 124, 7, 87)]
public delegate void MessageReceivedCallback(Guid receiverId, IReadOnlyList<object> message);
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Security.Isolation.IsolatedWindowsEnvironmentContract), 65536)]
[Windows.Foundation.Metadata.Guid(4122265855, 7581, 18837, 159, 234, 77, 21, 37, 124, 7, 87)]
[Windows.Foundation.Metadata.Deprecated("MessageReceivedCallback 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 MessageReceivedCallback(Guid receiverId, IReadOnlyList<object> message);
var messageReceivedCallbackHandler = function(receiverId, message){
/* Your code */
}
Public Delegate Sub MessageReceivedCallback(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>

IVectorView

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