FileSystemEventArgs.Name 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 name of the affected file or directory.
public:
property System::String ^ Name { System::String ^ get(); };
public string? Name { get; }
public string Name { get; }
member this.Name : string
Public ReadOnly Property Name As String
Property Value
The name of the affected file or directory.
Remarks
The name returned by the Name property is the relative path of the affected file or directory, with respect to the directory being watched. For example, if a FileSystemWatcher object is watching the directory "C:\temp" and the file at "C:\temp\test\file.txt" changes, the Name property will return "test\file.txt".
The Name property may be null for renamed events if the FileSystemWatcher does not get matching old and new name events from the OS.
Applies to
Feedback
https://aka.ms/ContentUserFeedback.
În curând: Pe parcursul anului 2024, vom elimina treptat Probleme legate de GitHub ca mecanism de feedback pentru conținut și îl vom înlocui cu un nou sistem de feedback. Pentru mai multe informații, consultați:Trimiteți și vizualizați feedback pentru