FileSystemEventArgs.FullPath 속성

정의

영향 받는 파일 또는 디렉터리의 정규화된 경로를 가져옵니다.

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

속성 값

영향 받는 파일 또는 디렉터리의 경로입니다.

예제

다음 예제는 FullPath 속성입니다. 이 코드 예제는에 대해 제공 된 큰 예제의 일부는 FileSystemEventArgs 클래스입니다.

//  This method is called when a file is created, changed, or deleted.
private static void OnChanged(object source, FileSystemEventArgs e)
{
    //  Show that a file has been created, changed, or deleted.
    WatcherChangeTypes wct = e.ChangeType;
    Console.WriteLine("File {0} {1}", e.FullPath, wct.ToString());
}
' This method is called when a file is created, changed, or deleted.
Private Sub OnChanged(ByVal source As Object, ByVal e As FileSystemEventArgs)

    ' Show that a file has been created, changed, or deleted.
    Dim wct As WatcherChangeTypes = e.ChangeType
    Console.WriteLine("File {0} {1}", e.FullPath, wct.ToString())
End Sub

설명

이 속성은 상대 경로 FileSystemWatcher 인 경우에도 를 사용하여 초기화되는 동일한 경로를 반환합니다.

적용 대상