Deferral 類別
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
儲存在延遲完成時叫用的 DeferralCompletedHandler ,並操作延遲的狀態。
public ref class Deferral sealed
/// [Windows.Foundation.Metadata.Activatable(Windows.Foundation.IDeferralFactory, 65536, Windows.Foundation.FoundationContract)]
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.FoundationContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class Deferral final
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.FoundationContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Activatable(Windows.Foundation.IDeferralFactory, 65536, "Windows.Foundation.FoundationContract")]
class Deferral final
[Windows.Foundation.Metadata.Activatable(typeof(Windows.Foundation.IDeferralFactory), 65536, typeof(Windows.Foundation.FoundationContract))]
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.FoundationContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public sealed class Deferral
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.FoundationContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Activatable(typeof(Windows.Foundation.IDeferralFactory), 65536, "Windows.Foundation.FoundationContract")]
public sealed class Deferral
function Deferral(handler)
Public NotInheritable Class Deferral
- 繼承
- 屬性
- 實作
Windows 需求
裝置系列 |
Windows 10 (已於 10.0.10240.0 引進)
|
API contract |
Windows.Foundation.FoundationContract (已於 v1.0 引進)
|
備註
如需 Deferral 類別的詳細資訊,請參閱 應用程式生命週期 中的延遲和 ExtendedExecution 範例一節。
完成 DeferralCompletedHandler之前,JAVAscript 應用程式不應該允許流覽。 這樣做可能會導致應用程式當機,而且應該被視為程式設計錯誤。
建構函式
Deferral(DeferralCompletedHandler) |
初始化新的 Deferral 物件,並指定要在延遲完成時呼叫的 DeferralCompletedHandler 。 |
方法
Close() |
如果尚未叫用 DeferralCompletedHandler ,這會呼叫它,並卸載委派的參考。 |
Complete() |
如果尚未叫用 DeferralCompletedHandler ,這會呼叫它,並卸載委派的參考。 |
Dispose() |
執行與釋放 (Free)、釋放 (Release) 或重設 Unmanaged 資源相關聯之應用程式定義的工作。 |