SocketActivityContext Class

Definition

The context associated with a socket while transferring ownership of the socket between an app and the socket brokering service.

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
Inheritance
Object Platform::Object IInspectable SocketActivityContext
Attributes

Windows requirements

Device family
Windows 10 (introduced in 10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v1.0)

Remarks

The SocketActivityContext class used by an app to pass serialized data to associate the app context to a transferred socket.

Constructors

SocketActivityContext(IBuffer)

Constructs a new SocketActivityContext object with given context data.

Properties

Data

Get the serialized data to associate the app context to a transferred socket.

Applies to