다음을 통해 공유


IHierarchyData.Path 속성

정의

노드의 계층적 경로를 가져옵니다.

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

속성 값

String 현재 노드를 기준으로 계층적 경로를 식별하는 A입니다.

예제

다음 코드 예제에서는 인터페이스를 구현 하는 클래스에서 속성을 구현 Path 하는 방법을 보여 줍니다 IHierarchyData . 클래스는 FileSystemHierarchyData 개체를 FileSystemInfo 래핑하고 속성 구현은 Path 파일 시스템 경로를 반환합니다. 이 코드 예제는 인터페이스 및 클래스에 대해 제공되는 더 큰 예제의 IHierarchyDataHierarchicalDataSourceControl 일부입니다.

// 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

설명

속성을 Path 메서드에 전달하여 GetHierarchicalView 식별된 노드PathHierarchicalDataSourceView 해당하는 개체를 검색할 수 있습니다.

주의

이 속성은 Path 데이터 바인딩된 컨트롤에서 클라이언트에 렌더링될 수 있으므로 호스트 환경에 대한 중요한 정보를 포함해서는 안 됩니다.

적용 대상

추가 정보