IHierarchyData::Path Property
Gets the hierarchical path of the node.
Assembly: System.Web (in System.Web.dll)
The Path property can be passed to the GetHierarchicalView method to retrieve the HierarchicalDataSourceView object that corresponds to the node identified by Path.
Caution: |
|---|
The Path property should not contain any sensitive information about the host environment, because it might be rendered to the client in a data-bound control. |
The following code example demonstrates how to implement the Path property in a class that implements the IHierarchyData interface. The FileSystemHierarchyData class wraps a FileSystemInfo object, and the Path property implementation returns its file system path. This code example is part of a larger example provided for the IHierarchyData interface and the HierarchicalDataSourceControl class.
Windows 7, Windows Vista, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98
The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Caution: