Share via


HierarchyInfo.NodeTypeName Property

Definition

When overridden in a derived class, gets the instance name of the node added to the hierarchy.

public:
 virtual property System::String ^ NodeTypeName { System::String ^ get(); };
public virtual string NodeTypeName { get; }
member this.NodeTypeName : string
Public Overridable ReadOnly Property NodeTypeName As String

Property Value

The instance node type.

Examples

The following example returns the NodeTypeName property.

public override string NodeTypeName
{
    get
    {
        return NodeType + "(" +
            System.Environment.MachineName + ")";
    }
}

Remarks

The NodeTypeName property is typically the name of the node type instance. For example, on a server that is named "N1-IIS" you might return the string "(N1-IIS)" as the node type name. A node type of "File" would return the name of the file.

If this property is not overridden, it gets the value of the Text property.

Applies to