ExtendedExecutionForegroundSession Klasse

Definition

Unterstützt die Verwaltung einer Anforderung für die erweiterte Ausführung. Diese API erfordert die Verwendung eingeschränkter Funktionen und kann nicht für Store-Anwendungen verwendet werden.

public ref class ExtendedExecutionForegroundSession sealed : IClosable
/// [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 ExtendedExecutionForegroundSession final : IClosable
/// [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 ExtendedExecutionForegroundSession final : IClosable
[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 ExtendedExecutionForegroundSession : System.IDisposable
[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 ExtendedExecutionForegroundSession : System.IDisposable
function ExtendedExecutionForegroundSession()
Public NotInheritable Class ExtendedExecutionForegroundSession
Implements IDisposable
Vererbung
Object Platform::Object IInspectable ExtendedExecutionForegroundSession
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)
App-Funktionen
extendedExecutionBackgroundAudio extendedExecutionCritical extendedExecutionUnconstrained

Konstruktoren

ExtendedExecutionForegroundSession()

Erstellt ein ExtendedExecutionForegroundSession-Objekt

Eigenschaften

Description

Ruft eine Zeichenfolge ab, die in der Shell angezeigt werden soll, oder legt sie fest.

Reason

Ruft den Grund für die erweiterte Ausführungsanforderung ab oder legt diese fest.

Methoden

Close()

Schließt die Sitzung und entfernt die erweiterte Ausführungsfunktion der Anwendung.

Dispose()

Führt anwendungsspezifische Aufgaben durch, die mit der Freigabe, der Zurückgabe oder dem Zurücksetzen von nicht verwalteten Ressourcen zusammenhängen.

RequestExtensionAsync()

Erweiterte Ausführung von Anforderungen

Ereignisse

Revoked

Dieses Ereignis tritt auf, wenn das System die erweiterte Ausführung widerruft.

Gilt für:

Weitere Informationen