다음을 통해 공유


SocketActivityContext 클래스

정의

앱과 소켓 조정 서비스 간에 소켓의 소유권을 전송하는 동안 소켓과 연결된 컨텍스트입니다.

public ref class SocketActivityContext sealed
/// [Windows.Foundation.Metadata.Activatable(Windows.Networking.Sockets.ISocketActivityContextFactory, 65536, Windows.Foundation.UniversalApiContract)]
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class SocketActivityContext final
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
/// [Windows.Foundation.Metadata.Activatable(Windows.Networking.Sockets.ISocketActivityContextFactory, 65536, "Windows.Foundation.UniversalApiContract")]
class SocketActivityContext final
[Windows.Foundation.Metadata.Activatable(typeof(Windows.Networking.Sockets.ISocketActivityContextFactory), 65536, typeof(Windows.Foundation.UniversalApiContract))]
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class SocketActivityContext
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
[Windows.Foundation.Metadata.Activatable(typeof(Windows.Networking.Sockets.ISocketActivityContextFactory), 65536, "Windows.Foundation.UniversalApiContract")]
public sealed class SocketActivityContext
function SocketActivityContext(data)
Public NotInheritable Class SocketActivityContext
상속
Object Platform::Object IInspectable SocketActivityContext
특성

Windows 요구 사항

디바이스 패밀리
Windows 10 (10.0.10240.0에서 도입되었습니다.)
API contract
Windows.Foundation.UniversalApiContract (v1.0에서 도입되었습니다.)

설명

앱에서 직렬화된 데이터를 전달하여 앱 컨텍스트를 전송된 소켓에 연결하는 데 사용하는 SocketActivityContext 클래스입니다.

생성자

SocketActivityContext(IBuffer)

지정된 컨텍스트 데이터를 사용하여 새 SocketActivityContext 개체를 생성합니다.

속성

Data

직렬화된 데이터를 가져와서 앱 컨텍스트를 전송된 소켓에 연결합니다.

적용 대상