AppServiceDeferral Classe

Definizione

Consente all'attività in background per un servizio app di ottenere un rinvio in modo che il servizio app possa rispondere alle richieste successive. I provider di servizi app consentono la comunicazione tra app fornendo servizi che altre app di Windows universale possono utilizzare.

public ref class AppServiceDeferral 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 AppServiceDeferral final
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class AppServiceDeferral 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 AppServiceDeferral
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public sealed class AppServiceDeferral
Public NotInheritable Class AppServiceDeferral
Ereditarietà
Object Platform::Object IInspectable AppServiceDeferral
Attributi

Requisiti Windows

Famiglia di dispositivi
Windows 10 (è stato introdotto in 10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (è stato introdotto in v1.0)

Commenti

Usare AppServiceRequestReceivedEventArgs.GetDeferral per ottenere questo differimento.

Metodi

Complete()

Indica che il contenuto di un gestore asincrono per l'evento AppServiceConnection.RequestReceived è pronto o che si è verificato un errore.

Si applica a

Vedi anche