SocketActivityContext SocketActivityContext SocketActivityContext SocketActivityContext Class

Definition

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

public : sealed class SocketActivityContext : ISocketActivityContextpublic sealed class SocketActivityContext : ISocketActivityContextPublic NotInheritable Class SocketActivityContext Implements ISocketActivityContext// You can use this class in JavaScript.
Attributes
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Remarks

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

Constructors

SocketActivityContext(IBuffer) SocketActivityContext(IBuffer) SocketActivityContext(IBuffer) SocketActivityContext(IBuffer)

Constructs a new SocketActivityContext object with given context data.

public : SocketActivityContext(IBuffer data)public SocketActivityContext(IBuffer data)Public Sub New(data As IBuffer)// You can use this method in JavaScript.
Parameters
data
IBuffer IBuffer IBuffer IBuffer

Context data to be used when the socket broker notifies the app of socket activity.

Properties

Data Data Data Data

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

public : IBuffer Data { get; }public IBuffer Data { get; }Public ReadOnly Property Data As IBuffer// You can use this property in JavaScript.
Value
IBuffer IBuffer IBuffer IBuffer

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