次の方法で共有


MessageReceivedCallback 代理人

定義

非推奨になりました。 PostMessageToReceiver を使用して分離 Windows 環境からメッセージが送信されるときに呼び出されるコールバック関数。

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))

パラメーター

receiverId
Guid

Platform::Guid

winrt::guid

メッセージ レシーバーの GUID。

message

IVectorView<Object>

IReadOnlyList<Object>

IVectorView<Platform::Object>

IVectorView<IInspectable>

IVectorView

属性

Windows の要件

デバイス ファミリ
Windows 10, version 2004 (10.0.19041.0 で導入)
API contract
Windows.Security.Isolation.IsolatedWindowsEnvironmentContract (v2.0 で導入)

注釈

警告

これは非推奨の API です。

適用対象