共用方式為


PickerClosingOperation 類別

定義

讓提供檔案的應用程式取得回應 Closing 事件的期限,並取得延遲,讓應用程式可以非同步回應事件。

public ref class PickerClosingOperation sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
class PickerClosingOperation final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
public sealed class PickerClosingOperation
Public NotInheritable Class PickerClosingOperation
繼承
Object Platform::Object IInspectable PickerClosingOperation
屬性

Windows 需求

裝置系列
Windows 10 (已於 10.0.10240.0 - for Xbox, see UWP features that aren't yet supported on Xbox 引進)
API contract
Windows.Foundation.UniversalApiContract (已於 v1.0 引進)

備註

如果您的 app 參與檔案開啟選擇器合約,您可以使用這個類別來回應 Closing 事件。

屬性

Deadline

取得 DateTime 物件,指出系統何時會關閉透過檔案選擇器提供檔案的應用程式,而不需進一步注意。

方法

GetDeferral()

取得 PickerClosingDeferral ,應用程式可透過檔案選擇器提供檔案,以非同步方式回應 Closing 事件。

適用於

另請參閱