Dela via


Launcher.FindFileHandlersAsync(String) Method

Definition

Enumerate the file handlers on the device.

public:
 static IAsyncOperation<IVectorView<AppInfo ^> ^> ^ FindFileHandlersAsync(Platform::String ^ extension);
/// [Windows.Foundation.Metadata.RemoteAsync]
 static IAsyncOperation<IVectorView<AppInfo>> FindFileHandlersAsync(winrt::hstring const& extension);
[Windows.Foundation.Metadata.RemoteAsync]
public static IAsyncOperation<IReadOnlyList<AppInfo>> FindFileHandlersAsync(string extension);
function findFileHandlersAsync(extension)
Public Shared Function FindFileHandlersAsync (extension As String) As IAsyncOperation(Of IReadOnlyList(Of AppInfo))

Parameters

extension
String

Platform::String

winrt::hstring

The file extension that you want to find handlers for. For example, ".bat". Include the leading period '.'.

Returns

A list of AppInfos for each application that handles the specified file extension.

Attributes

Remarks

This API may also be called from Windows desktop application but does not return Windows desktop application.

Applies to