Launcher.QueryUriSupportAsync 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
QueryUriSupportAsync(Uri, LaunchQuerySupportType) |
以非同步方式查詢是否可以針對指定的 URI 和啟動類型啟動應用程式。 |
QueryUriSupportAsync(Uri, LaunchQuerySupportType, String) |
以非同步方式查詢是否可以針對指定的 URI、啟動類型和套件名稱啟動應用程式。 |
QueryUriSupportAsync(Uri, LaunchQuerySupportType)
以非同步方式查詢是否可以針對指定的 URI 和啟動類型啟動應用程式。
public:
static IAsyncOperation<LaunchQuerySupportStatus> ^ QueryUriSupportAsync(Uri ^ uri, LaunchQuerySupportType launchQuerySupportType);
/// [Windows.Foundation.Metadata.Overload("QueryUriSupportAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
static IAsyncOperation<LaunchQuerySupportStatus> QueryUriSupportAsync(Uri const& uri, LaunchQuerySupportType const& launchQuerySupportType);
[Windows.Foundation.Metadata.Overload("QueryUriSupportAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
public static IAsyncOperation<LaunchQuerySupportStatus> QueryUriSupportAsync(System.Uri uri, LaunchQuerySupportType launchQuerySupportType);
function queryUriSupportAsync(uri, launchQuerySupportType)
Public Shared Function QueryUriSupportAsync (uri As Uri, launchQuerySupportType As LaunchQuerySupportType) As IAsyncOperation(Of LaunchQuerySupportStatus)
參數
- launchQuerySupportType
- LaunchQuerySupportType
要查詢支援的啟動類型。
傳回
值,指出應用程式是否可供啟動 URI。
- 屬性
備註
您也可以從 Windows 傳統型應用程式呼叫此 API。
Windows 傳統型應用程式和通用 Windows 平臺 (UWP) 應用程式都會被視為。
另請參閱
適用於
QueryUriSupportAsync(Uri, LaunchQuerySupportType, String)
以非同步方式查詢是否可以針對指定的 URI、啟動類型和套件名稱啟動應用程式。
public:
static IAsyncOperation<LaunchQuerySupportStatus> ^ QueryUriSupportAsync(Uri ^ uri, LaunchQuerySupportType launchQuerySupportType, Platform::String ^ packageFamilyName);
/// [Windows.Foundation.Metadata.Overload("QueryUriSupportWithPackageFamilyNameAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
static IAsyncOperation<LaunchQuerySupportStatus> QueryUriSupportAsync(Uri const& uri, LaunchQuerySupportType const& launchQuerySupportType, winrt::hstring const& packageFamilyName);
[Windows.Foundation.Metadata.Overload("QueryUriSupportWithPackageFamilyNameAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
public static IAsyncOperation<LaunchQuerySupportStatus> QueryUriSupportAsync(System.Uri uri, LaunchQuerySupportType launchQuerySupportType, string packageFamilyName);
function queryUriSupportAsync(uri, launchQuerySupportType, packageFamilyName)
Public Shared Function QueryUriSupportAsync (uri As Uri, launchQuerySupportType As LaunchQuerySupportType, packageFamilyName As String) As IAsyncOperation(Of LaunchQuerySupportStatus)
參數
- launchQuerySupportType
- LaunchQuerySupportType
要查詢支援的啟動類型。
- packageFamilyName
-
String
Platform::String
winrt::hstring
指定將用來啟動此 URI 的特定套件。
傳回
值,指出應用程式是否可供啟動 URI。
- 屬性
備註
您也可以從 Windows 傳統型應用程式呼叫此 API。
Windows 傳統型應用程式和通用 Windows 平臺 (UWP) 應用程式都會被視為。