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​

NameOptionalityTypeDescription
fileNameRequiredstringName or extension of the file.

Return type​

TypeDescription
Promise < string >URL of the icon.