public static GetIconForExtension ( string extension, ShellIconSize size ) : |
||
extension | string | File extension (including the leading period). |
size | ShellIconSize | The desired size of the icon. |
리턴 |
public static Icon GetIconForExtension(string extension, ShellIconSize size)
{
// repeat the process used for files, but instruct the API not to access the file
size |= (ShellIconSize)SHGFI_USEFILEATTRIBUTES;
return GetIconForFile(extension, size);
}