IVsImageService::GetIconForFile Method (String^, __VSUIDATAFORMAT)

 

Gets the 16x16 icon for the specified file.

Namespace:   Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop.11.0 (in Microsoft.VisualStudio.Shell.Interop.11.0.dll)

IVsUIObject^ GetIconForFile(
	String^ filename,
	__VSUIDATAFORMAT desiredFormat
)

Parameters

filename
Type: System::String^

[in] The file name of the icon.

desiredFormat
Type: Microsoft.VisualStudio.Shell.Interop::__VSUIDATAFORMAT

[in] The data format used in the user interface.

Return Value

Type: Microsoft.VisualStudio.Shell.Interop::IVsUIObject^

The icon object. Returns null if the icon cannot be retrieved.

Return to top
Show: