다음을 통해 공유


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입니다.

적용 대상