IVsImageService::GetIconForFile Method (String^, __VSUIDATAFORMAT)
Visual Studio 2015
Gets the 16x16 icon for the specified file.
Assembly: Microsoft.VisualStudio.Shell.Interop.11.0 (in Microsoft.VisualStudio.Shell.Interop.11.0.dll)
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.
Show: