RenamedEventArgs Class

Provides data for the Renamed event.

Syntax

Declaration

public class RenamedEventArgs : FileSystemEventArgs

Inheritance Hierarchy

Inherited Members

System.IO.FileSystemEventArgs

, ,

System.EventArgs

System.Object

, , , , , ,

Constructors summary

Initializes a new instance of the RenamedEventArgs class.

Properties summary

Gets the previous fully qualified path of the affected file or directory.

Gets the old name of the affected file or directory.

Constructors

  • RenamedEventArgs(WatcherChangeTypes, String, String, String)

    Initializes a new instance of the RenamedEventArgs class.

    public RenamedEventArgs(WatcherChangeTypes changeType, string directory, string name, string oldName)

    Parameters

Properties

  • OldFullPath

    Gets the previous fully qualified path of the affected file or directory.

    public string OldFullPath { get; }

    Property Value

    • The previous fully qualified path of the affected file or directory.

  • OldName

    Gets the old name of the affected file or directory.

    public string OldName { get; }

    Property Value

    • The previous name of the affected file or directory.

Details

Namespace

System.IO

Assembly

System.IO.FileSystem.Watcher.dll

See Also