Share via


XamlRenderingBackgroundTask Classe

Définition

Permet de créer une bitmap à partir d’une arborescence XAML dans une tâche en arrière-plan.

public ref class XamlRenderingBackgroundTask
/// [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 XamlRenderingBackgroundTask
[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 class XamlRenderingBackgroundTask
Public Class XamlRenderingBackgroundTask
Héritage
Object Platform::Object IInspectable XamlRenderingBackgroundTask
Attributs

Configuration requise pour Windows

Famille d’appareils
Windows 10 (introduit dans 10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduit dans v1.0)

Remarques

Important

Pour maintenir l’empreinte mémoire de la tâche en arrière-plan aussi faible que possible, cette tâche doit être implémentée dans un composant C++ Windows Runtime pour Windows Phone. L’empreinte mémoire sera plus élevée si écrite en C# et provoquera des exceptions de mémoire insuffisante sur les appareils à faible mémoire, ce qui mettra fin à la tâche en arrière-plan. Pour plus d’informations sur les contraintes de mémoire, consultez Prise en charge de votre application avec des tâches en arrière-plan.

Constructeurs

XamlRenderingBackgroundTask()

Initialise une nouvelle instance de la classe XamlRenderingBackgroundTask.

Méthodes

OnRun(IBackgroundTaskInstance)

Effectue le travail de la tâche en arrière-plan. Le système appelle cette méthode lorsque la tâche en arrière-plan associée a été déclenchée.

S’applique à