RenamedEventArgs(WatcherChangeTypes, String, String, String) 构造函数

定义

初始化 RenamedEventArgs 类的新实例。

public:
 RenamedEventArgs(System::IO::WatcherChangeTypes changeType, System::String ^ directory, System::String ^ name, System::String ^ oldName);
public RenamedEventArgs (System.IO.WatcherChangeTypes changeType, string directory, string? name, string? oldName);
public RenamedEventArgs (System.IO.WatcherChangeTypes changeType, string directory, string name, string oldName);
new System.IO.RenamedEventArgs : System.IO.WatcherChangeTypes * string * string * string -> System.IO.RenamedEventArgs
Public Sub New (changeType As WatcherChangeTypes, directory As String, name As String, oldName As String)

参数

changeType
WatcherChangeTypes

WatcherChangeTypes 值之一。

directory
String

受影响的文件名或目录名。

name
String

受影响的文件名或目录名。

oldName
String

受影响的文件或目录的旧名称。

适用于

另请参阅