HierarchyInfo.Image Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets the image associated with the node for use in IIS Manager.
public:
virtual property System::Object ^ Image { System::Object ^ get(); };
public virtual object Image { get; }
member this.Image : obj
Public Overridable ReadOnly Property Image As Object
Property Value
The Image object that contains the image for the node.
Examples
The following example shows an overridden System.Drawing.Image returning a bitmap.
public override object Image
{
get
{
System.Drawing.Icon icon2 = new Icon(SystemIcons.Hand, 16, 16);
return icon2.ToBitmap();
}
}
Remarks
To avoid adding multiple instances of the same image for different instances of the same node type, return a cached image. One way to implement this is with a static private field that always returns the same instance. This method is called by the Microsoft.Web.Management.Host.IManagementHost interface to obtain the image associated with the node added to the tree view in the Connections pane of IIS Manager.