ApplicationView.TryUnsnap Méthode

Définition

Notes

TryUnsnap peut être modifié ou indisponible pour les versions après Windows 8.1. Les applications peuvent être redimensionnées en continu, mais ne peuvent pas être ancrées, à partir de Windows 8.1. En outre, les méthodes statiques ApplicationView peuvent être modifiées ou indisponibles pour les versions après Windows 8.1. Utilisez ApplicationView.GetForCurrentView pour obtenir un objet ApplicationView .

Tente de désapposer une application précédemment ancrée. Cet appel réussit uniquement lorsque l’application est en cours d’exécution au premier plan.

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

Retours

Boolean

bool

true si l’application a été dénachée ; false si la tentative d’unsnap a échoué.

Attributs

Remarques

Il s’agit d’un membre statique de la classe ApplicationView . Pour JavaScript, cela signifie qu’il s’agit d’une méthode de la classe ApplicationView , et non de l’objet window créé par getForCurrentView .

S’applique à