Skip to main content

GetFileTypeIconURL

Description

Returns the file type icon from the filename extension as data url.

Syntax

// shellUI points to instance of IShellUI
const result = await shellUI.GetFileTypeIconURL(fileName);

Parameters

NameTypeDescription
fileNamestringName or extension of the file.

Return type

TypeDescription
Promise < string >URL of the icon.