Share via


HierarchyInfo.Text Property

Definition

When overridden in a derived class, gets the name for the node.

public:
 abstract property System::String ^ Text { System::String ^ get(); };
public abstract string Text { get; }
member this.Text : string
Public MustOverride ReadOnly Property Text As String

Property Value

The name for the node.

Examples

The following example implements the Text property.

public override string Text
{
    get
    {
        if (string.IsNullOrEmpty(_sNodeName))
            _sNodeName = "HierarchyInfo Demo 3";
        return _sNodeName;
    }
}

Remarks

The node name should be stored in a string variable if renaming is supported.

Applies to