FileSystemEventArgs.FullPath FileSystemEventArgs.FullPath FileSystemEventArgs.FullPath FileSystemEventArgs.FullPath Property

Definition

Ruft den vollqualifizierten Pfad der betroffenen Datei bzw. des Verzeichnisses ab.Gets the fully qualified path of the affected file or directory.

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

Eigenschaftswert

Der Pfad der betroffenen Datei bzw. des Verzeichnisses.The path of the affected file or directory.

Beispiele

Im folgenden Beispiel wird die FullPath -Eigenschaft veranschaulicht.The following example demonstrates the FullPath property. Dieses Codebeispiel ist Teil eines größeren Beispiels, das für die FileSystemEventArgs -Klasse bereitgestellt wird.This code example is part of a larger example provided for the FileSystemEventArgs class.

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

Sicherheit

FileIOPermission
zum Lesen von Dateien.for reading files. Zugehörige Enumeration:ReadAssociated enumeration: Read

Gilt für: