ApplicationView.TryUnsnap 方法

定义

注意

在Windows 8.1后,TryUnsnap 可能会更改或不可用于发布。 应用可以持续调整大小,但无法贴靠,从Windows 8.1开始。 此外,ApplicationView 静态方法可能在Windows 8.1后更改或不可用。 使用 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 创建的 window 对象的方法。

适用于