Files
Dec2017-Script-Dump/System/IO/FileSystemEventArgs.cs
T
2026-06-04 11:42:34 +02:00

77 lines
2.6 KiB
C#

using System;
namespace System.IO
{
/// <summary>Provides data for the directory events: <see cref="E:System.IO.FileSystemWatcher.Changed" />, <see cref="E:System.IO.FileSystemWatcher.Created" />, <see cref="E:System.IO.FileSystemWatcher.Deleted" />.</summary>
/// <filterpriority>2</filterpriority>
// Token: 0x02000115 RID: 277
public class FileSystemEventArgs : EventArgs
{
/// <summary>Initializes a new instance of the <see cref="T:System.IO.FileSystemEventArgs" /> class.</summary>
/// <param name="changeType">One of the <see cref="T:System.IO.WatcherChangeTypes" /> values, which represents the kind of change detected in the file system. </param>
/// <param name="directory">The root directory of the affected file or directory. </param>
/// <param name="name">The name of the affected file or directory. </param>
// Token: 0x060009E3 RID: 2531 RVA: 0x0001AF4C File Offset: 0x0001914C
public FileSystemEventArgs(WatcherChangeTypes changeType, string directory, string name)
{
this.changeType = changeType;
this.directory = directory;
this.name = name;
}
// Token: 0x060009E4 RID: 2532 RVA: 0x0001AF6C File Offset: 0x0001916C
internal void SetName(string name)
{
this.name = name;
}
/// <summary>Gets the type of directory event that occurred.</summary>
/// <returns>One of the <see cref="T:System.IO.WatcherChangeTypes" /> values that represents the kind of change detected in the file system.</returns>
/// <filterpriority>2</filterpriority>
// Token: 0x1700028B RID: 651
// (get) Token: 0x060009E5 RID: 2533 RVA: 0x0001AF78 File Offset: 0x00019178
public WatcherChangeTypes ChangeType
{
get
{
return this.changeType;
}
}
/// <summary>Gets the fully qualifed path of the affected file or directory.</summary>
/// <returns>The path of the affected file or directory.</returns>
/// <filterpriority>2</filterpriority>
// Token: 0x1700028C RID: 652
// (get) Token: 0x060009E6 RID: 2534 RVA: 0x0001AF80 File Offset: 0x00019180
public string FullPath
{
get
{
return Path.Combine(this.directory, this.name);
}
}
/// <summary>Gets the name of the affected file or directory.</summary>
/// <returns>The name of the affected file or directory.</returns>
/// <filterpriority>2</filterpriority>
// Token: 0x1700028D RID: 653
// (get) Token: 0x060009E7 RID: 2535 RVA: 0x0001AF94 File Offset: 0x00019194
public string Name
{
get
{
return this.name;
}
}
// Token: 0x0400035F RID: 863
private WatcherChangeTypes changeType;
// Token: 0x04000360 RID: 864
private string directory;
// Token: 0x04000361 RID: 865
private string name;
}
}