Hinweis
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, sich anzumelden oder das Verzeichnis zu wechseln.
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, das Verzeichnis zu wechseln.
Gets the icon for the toolbox item as a file path, byte array, Bitmap, or IntPtr.
Namespace: Microsoft.VisualStudio.Shell
Assembly: Microsoft.VisualStudio.Shell.Immutable.11.0 (in Microsoft.VisualStudio.Shell.Immutable.11.0.dll)
Syntax
'Declaration
ReadOnly Property Icon As Object
Object Icon { get; }
Property Value
Type: System.Object
Remarks
This value can be any of the following, in order of decreasing efficiency (that is, you should prefer the lower-numbered options):
The path to an image file (as a string).
A byte array containing the bytes of an image file.
A Bitmap object.
A Win32 GDI bitmap handle (as an IntPtr).
For the file path and byte array, all GDI+ file types are supported: BMP, GIF, JPG, PNG and TIFF.
This property can be accessed on a background thread.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.