SearchPane.HideThisApplication 方法

定义

隐藏当前应用的 UI。

public:
 static void HideThisApplication();
/// [Windows.Foundation.Metadata.Deprecated("ISearchPaneStaticsWithHideThisApplication may be altered or unavailable for releases after Windows 10.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, Windows.ApplicationModel.Search.SearchContract)]
 static void HideThisApplication();
/// [Windows.Foundation.Metadata.Deprecated("ISearchPaneStaticsWithHideThisApplication may be altered or unavailable for releases after Windows 10.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, "Windows.ApplicationModel.Search.SearchContract")]
 static void HideThisApplication();
[Windows.Foundation.Metadata.Deprecated("ISearchPaneStaticsWithHideThisApplication may be altered or unavailable for releases after Windows 10.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, typeof(Windows.ApplicationModel.Search.SearchContract))]
public static void HideThisApplication();
[Windows.Foundation.Metadata.Deprecated("ISearchPaneStaticsWithHideThisApplication may be altered or unavailable for releases after Windows 10.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, "Windows.ApplicationModel.Search.SearchContract")]
public static void HideThisApplication();
function hideThisApplication()
Public Shared Sub HideThisApplication ()
属性

注解

重要

若要在应用中实现Windows 10或更高版本的搜索,请使用 AutoSuggestBox。 有关详细信息 ,请参阅自动建议框

不应在 Windows 10 或更高版本的应用中使用 Windows.ApplicationModel.Search API (SearchPaneSearchContract) 或 SearchBox API。

注意

应用不能同时使用搜索框 (Windows.UI.Xaml.Controls.SearchBox/WinJS.UI.SearchBox) 和 SearchPane。 在同一应用中同时使用搜索框和搜索窗格会导致应用引发异常,并显示以下消息:“无法创建'Windows.UI.Xaml.Controls.SearchBox'类型的实例。”

适用于