Share via


SocketActivityInformation Class

Definition

Provides information on the transferred socket from the Socket Broker.

public ref class SocketActivityInformation sealed
/// [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 SocketActivityInformation final
[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 SocketActivityInformation
Public NotInheritable Class SocketActivityInformation
Inheritance
Object Platform::Object IInspectable SocketActivityInformation
Attributes

Windows requirements

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

Remarks

You can get an instance of this class from the static SocketActivityInformation.AllSockets collection, or from the SocketActivityTriggerDetails object passed to your SocketActivityTrigger event handler.

Properties

AllSockets

Gets a list of all the sockets transferred to the socket brokering service by this app.

Context

Get the context associated while transferring ownership of the socket.

DatagramSocket

Based on the socket type, the app can reclaim the ownership of the appropriate DatagramSocket.

Id

A unique string for this app used to identify the transferred socket. This is passed by the app while transferring the socket ownership to the service.

SocketKind

Gets a SocketActivityKind enumeration value that identifies socket kind.

StreamSocket

Based on the socket type, the app can reclaim the ownership of the appropriate StreamSocket.

StreamSocketListener

Based on the socket type, the app can reclaim the ownership of the appropriate StreamSocketListener.

TaskId

The background task ID used while transferring ownership of the socket.

Applies to

See also