WaitForChangedResult.Name Propriété

Définition

Obtient ou définit le nom du fichier ou du répertoire qui a été modifié.

public:
 property System::String ^ Name { System::String ^ get(); void set(System::String ^ value); };
public string? Name { get; set; }
public string Name { get; set; }
member this.Name : string with get, set
Public Property Name As String

Valeur de propriété

Nom du fichier ou du répertoire qui a été modifié.

Exemples

L’exemple suivant illustre la Name propriété . Cet exemple de code fait partie d’un exemple plus grand fourni pour la WaitForChangedResult structure.

' Suspend the calling thread until the file has been deleted.
Dim cr As IO.WaitForChangedResult = fsw.WaitForChanged(WatcherChangeTypes.Deleted)

' Tell the user the file is deleted and exit.
Console.WriteLine("The {0} files is deleted; program is exiting", cr.Name)

S’applique à