Compartir a través de


SocketActivityContext Clase

Definición

Contexto asociado a un socket al transferir la propiedad del socket entre una aplicación y el servicio de agente de sockets.

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
Herencia
Object Platform::Object IInspectable SocketActivityContext
Atributos

Requisitos de Windows

Familia de dispositivos
Windows 10 (se introdujo en la versión 10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (se introdujo en la versión v1.0)

Comentarios

La clase SocketActivityContext usada por una aplicación para pasar datos serializados para asociar el contexto de la aplicación a un socket transferido.

Constructores

SocketActivityContext(IBuffer)

Construye un nuevo objeto SocketActivityContext con datos de contexto especificados.

Propiedades

Data

Obtenga los datos serializados para asociar el contexto de la aplicación a un socket transferido.

Se aplica a