ApplicationView.TryUnsnap 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
注意
tryUnsnap 可能會在Windows 8.1之後變更或無法使用版本。 應用程式可以持續調整大小,但無法貼齊,從Windows 8.1開始。 此外,在Windows 8.1之後,可能會變更或無法使用 ApplicationView 靜態方法。 使用 ApplicationView.GetForCurrentView 取得 ApplicationView 物件。
嘗試取消卸載先前已貼齊的應用程式。 只有在應用程式在前景執行時,此呼叫才會成功。
public:
static bool TryUnsnap();
/// [Windows.Foundation.Metadata.Deprecated("TryUnsnap may be altered or unavailable for releases after Windows 8.1. Apps can be continuously resized, but cannot be snapped, starting in Windows 8.1.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, Windows.Foundation.UniversalApiContract)]
static bool TryUnsnap();
/// [Windows.Foundation.Metadata.Deprecated("TryUnsnap may be altered or unavailable for releases after Windows 8.1. Apps can be continuously resized, but cannot be snapped, starting in Windows 8.1.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, "Windows.Foundation.UniversalApiContract")]
static bool TryUnsnap();
[Windows.Foundation.Metadata.Deprecated("TryUnsnap may be altered or unavailable for releases after Windows 8.1. Apps can be continuously resized, but cannot be snapped, starting in Windows 8.1.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, typeof(Windows.Foundation.UniversalApiContract))]
public static bool TryUnsnap();
[Windows.Foundation.Metadata.Deprecated("TryUnsnap may be altered or unavailable for releases after Windows 8.1. Apps can be continuously resized, but cannot be snapped, starting in Windows 8.1.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, "Windows.Foundation.UniversalApiContract")]
public static bool TryUnsnap();
function tryUnsnap()
Public Shared Function TryUnsnap () As Boolean
傳回
Boolean
bool
如果 應用程式已成功解壓縮,則為 true;如果 unsnap 嘗試失敗,則為 false 。
- 屬性
備註
這是 ApplicationView 類別的靜態成員。 針對 JavaScript,這表示它是 ApplicationView 類別的方法,而不是 getForCurrentView 所建立的視窗物件。