IHierarchyData.Path 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 hierarchical path of the node.
public:
property System::String ^ Path { System::String ^ get(); };
public string Path { get; }
member this.Path : string
Public ReadOnly Property Path As String
Property Value
A String that identifies the hierarchical path relative to the current node.
Examples
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.
// DirectoryInfo returns the OriginalPath, while FileInfo returns
// a fully qualified path.
public string Path
{
get
{
return fileSystemObject.ToString();
}
}
' DirectoryInfo returns the OriginalPath, while FileInfo returns
' a fully qualified path.
Public Overridable ReadOnly Property Path() As String _
Implements IHierarchyData.Path
Get
Return fileSystemObject.ToString()
End Get
End Property
Remarks
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.
Applies to
See also
.NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기