Condividi tramite


SocketActivityContext Classe

Definizione

Contesto associato a un socket durante il trasferimento della proprietà del socket tra un'app e il servizio di brokering socket.

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
Ereditarietà
Object Platform::Object IInspectable SocketActivityContext
Attributi

Requisiti Windows

Famiglia di dispositivi
Windows 10 (è stato introdotto in 10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (è stato introdotto in v1.0)

Commenti

Classe SocketActivityContext usata da un'app per passare dati serializzati per associare il contesto dell'app a un socket trasferito.

Costruttori

SocketActivityContext(IBuffer)

Costruisce un nuovo oggetto SocketActivityContext con dati di contesto specificati.

Proprietà

Data

Ottenere i dati serializzati per associare il contesto dell'app a un socket trasferito.

Si applica a