SocketActivityTrigger Klasse

Definition

Stellt einen Trigger dar, der eine Hintergrundaufgabe zum Behandeln von Socketaktivitäten startet.

public ref class SocketActivityTrigger sealed : IBackgroundTrigger
/// [Windows.Foundation.Metadata.Activatable(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 SocketActivityTrigger final : IBackgroundTrigger
/// [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(65536, "Windows.Foundation.UniversalApiContract")]
class SocketActivityTrigger final : IBackgroundTrigger
[Windows.Foundation.Metadata.Activatable(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 SocketActivityTrigger : IBackgroundTrigger
[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(65536, "Windows.Foundation.UniversalApiContract")]
public sealed class SocketActivityTrigger : IBackgroundTrigger
function SocketActivityTrigger()
Public NotInheritable Class SocketActivityTrigger
Implements IBackgroundTrigger
Vererbung
Object Platform::Object IInspectable SocketActivityTrigger
Attribute
Implementiert

Windows-Anforderungen

Gerätefamilie
Windows 10 (eingeführt in 10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (eingeführt in v1.0)

Hinweise

Informationen zur Verwendung dieses Ereignisses und des Socketbrokers mit Ihrer App finden Sie unter Netzwerkkommunikation im Hintergrund.

Versionsverlauf

Windows-Version SDK-Version Mehrwert
1607 14393 IsWakeFromLowPowerSupported

Konstruktoren

SocketActivityTrigger()

Initialisiert eine neue instance eines Socketaktivitätstriggers.

Eigenschaften

IsWakeFromLowPowerSupported

Ruft ab, ob ein SocketActivityTrigger den Computer aus einem Energiesparzustand reaktivieren kann.

Gilt für:

Weitere Informationen