Files
2026-04-10 22:50:51 +02:00

266 lines
12 KiB
C#

using System;
using System.Runtime.InteropServices;
using System.Runtime.Serialization;
using Cpp2IlInjected;
namespace System.IO
{
/// <summary>Provides the base class for both <see cref="T:System.IO.FileInfo" /> and <see cref="T:System.IO.DirectoryInfo" /> objects.</summary>
// Token: 0x02000290 RID: 656
[Token(Token = "0x2000290")]
[ComVisible(true)]
[Serializable]
public abstract class FileSystemInfo : MarshalByRefObject, ISerializable
{
/// <summary>Initializes a new instance of the <see cref="T:System.IO.FileSystemInfo" /> class.</summary>
// Token: 0x060017B6 RID: 6070 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60017B6")]
[Address(RVA = "0x293A080", Offset = "0x2938E80", VA = "0x18293A080")]
protected FileSystemInfo()
{
}
/// <summary>Initializes a new instance of the <see cref="T:System.IO.FileSystemInfo" /> class with serialized data.</summary>
/// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param>
/// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param>
/// <exception cref="T:System.ArgumentNullException">The specified <see cref="T:System.Runtime.Serialization.SerializationInfo" /> is null.</exception>
// Token: 0x060017B7 RID: 6071 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60017B7")]
[Address(RVA = "0x293A0D0", Offset = "0x2938ED0", VA = "0x18293A0D0")]
protected FileSystemInfo(SerializationInfo info, StreamingContext context)
{
}
/// <summary>Gets the full path of the directory or file.</summary>
/// <returns>A string containing the full path.</returns>
/// <exception cref="T:System.IO.PathTooLongException">The fully qualified path and file name exceed the system-defined maximum length.</exception>
/// <exception cref="T:System.Security.SecurityException">The caller does not have the required permission.</exception>
// Token: 0x170002C8 RID: 712
// (get) Token: 0x060017B8 RID: 6072 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x170002C8")]
public virtual string FullName
{
[Token(Token = "0x60017B8")]
[Address(RVA = "0x3FA170", Offset = "0x3F8F70", VA = "0x1803FA170", Slot = "7")]
get
{
return null;
}
}
/// <summary>Gets the string representing the extension part of the file.</summary>
/// <returns>A string containing the <see cref="T:System.IO.FileSystemInfo" /> extension.</returns>
// Token: 0x170002C9 RID: 713
// (get) Token: 0x060017B9 RID: 6073 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x170002C9")]
public string Extension
{
[Token(Token = "0x60017B9")]
[Address(RVA = "0x293A370", Offset = "0x2939170", VA = "0x18293A370")]
get
{
return null;
}
}
/// <summary>For files, gets the name of the file. For directories, gets the name of the last directory in the hierarchy if a hierarchy exists. Otherwise, the <see langword="Name" /> property gets the name of the directory.</summary>
/// <returns>A string that is the name of the parent directory, the name of the last directory in the hierarchy, or the name of a file, including the file name extension.</returns>
// Token: 0x170002CA RID: 714
// (get) Token: 0x060017BA RID: 6074
[Token(Token = "0x170002CA")]
public abstract string Name
{
[Token(Token = "0x60017BA")]
[Address(Slot = "8")]
get;
}
/// <summary>Gets a value indicating whether the file or directory exists.</summary>
/// <returns>
/// <see langword="true" /> if the file or directory exists; otherwise, <see langword="false" />.</returns>
// Token: 0x170002CB RID: 715
// (get) Token: 0x060017BB RID: 6075
[Token(Token = "0x170002CB")]
public abstract bool Exists
{
[Token(Token = "0x60017BB")]
[Address(Slot = "9")]
get;
}
/// <summary>Deletes a file or directory.</summary>
/// <exception cref="T:System.IO.DirectoryNotFoundException">The specified path is invalid; for example, it is on an unmapped drive.</exception>
/// <exception cref="T:System.IO.IOException">There is an open handle on the file or directory, and the operating system is Windows XP or earlier. This open handle can result from enumerating directories and files. For more information, see How to: Enumerate Directories and Files.</exception>
// Token: 0x060017BC RID: 6076
[Token(Token = "0x60017BC")]
[Address(Slot = "10")]
public abstract void Delete();
/// <summary>Gets or sets the creation time of the current file or directory.</summary>
/// <returns>The creation date and time of the current <see cref="T:System.IO.FileSystemInfo" /> object.</returns>
/// <exception cref="T:System.IO.IOException">
/// <see cref="M:System.IO.FileSystemInfo.Refresh" /> cannot initialize the data.</exception>
/// <exception cref="T:System.IO.DirectoryNotFoundException">The specified path is invalid; for example, it is on an unmapped drive.</exception>
/// <exception cref="T:System.PlatformNotSupportedException">The current operating system is not Windows NT or later.</exception>
/// <exception cref="T:System.ArgumentOutOfRangeException">The caller attempts to set an invalid creation time.</exception>
// Token: 0x170002CC RID: 716
// (get) Token: 0x060017BD RID: 6077 RVA: 0x000102A8 File Offset: 0x0000E4A8
[Token(Token = "0x170002CC")]
public DateTime CreationTime
{
[Token(Token = "0x60017BD")]
[Address(RVA = "0x293A2D0", Offset = "0x29390D0", VA = "0x18293A2D0")]
get
{
return default(DateTime);
}
}
/// <summary>Gets or sets the creation time, in coordinated universal time (UTC), of the current file or directory.</summary>
/// <returns>The creation date and time in UTC format of the current <see cref="T:System.IO.FileSystemInfo" /> object.</returns>
/// <exception cref="T:System.IO.IOException">
/// <see cref="M:System.IO.FileSystemInfo.Refresh" /> cannot initialize the data.</exception>
/// <exception cref="T:System.IO.DirectoryNotFoundException">The specified path is invalid; for example, it is on an unmapped drive.</exception>
/// <exception cref="T:System.PlatformNotSupportedException">The current operating system is not Windows NT or later.</exception>
/// <exception cref="T:System.ArgumentOutOfRangeException">The caller attempts to set an invalid access time.</exception>
// Token: 0x170002CD RID: 717
// (get) Token: 0x060017BE RID: 6078 RVA: 0x000102C0 File Offset: 0x0000E4C0
[Token(Token = "0x170002CD")]
[ComVisible(false)]
public DateTime CreationTimeUtc
{
[Token(Token = "0x60017BE")]
[Address(RVA = "0x293A250", Offset = "0x2939050", VA = "0x18293A250")]
get
{
return default(DateTime);
}
}
/// <summary>Gets or sets the time, in coordinated universal time (UTC), when the current file or directory was last written to.</summary>
/// <returns>The UTC time when the current file was last written to.</returns>
/// <exception cref="T:System.IO.IOException">
/// <see cref="M:System.IO.FileSystemInfo.Refresh" /> cannot initialize the data.</exception>
/// <exception cref="T:System.PlatformNotSupportedException">The current operating system is not Windows NT or later.</exception>
/// <exception cref="T:System.ArgumentOutOfRangeException">The caller attempts to set an invalid write time.</exception>
// Token: 0x170002CE RID: 718
// (get) Token: 0x060017BF RID: 6079 RVA: 0x000102D8 File Offset: 0x0000E4D8
[Token(Token = "0x170002CE")]
[ComVisible(false)]
public DateTime LastWriteTimeUtc
{
[Token(Token = "0x60017BF")]
[Address(RVA = "0x293A4C0", Offset = "0x29392C0", VA = "0x18293A4C0")]
get
{
return default(DateTime);
}
}
/// <summary>Refreshes the state of the object.</summary>
/// <exception cref="T:System.IO.IOException">A device such as a disk drive is not ready.</exception>
// Token: 0x060017C0 RID: 6080 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60017C0")]
[Address(RVA = "0x2939F60", Offset = "0x2938D60", VA = "0x182939F60")]
public void Refresh()
{
}
/// <summary>Gets or sets the attributes for the current file or directory.</summary>
/// <returns>
/// <see cref="T:System.IO.FileAttributes" /> of the current <see cref="T:System.IO.FileSystemInfo" />.</returns>
/// <exception cref="T:System.IO.FileNotFoundException">The specified file doesn't exist. Only thrown when setting the property value.</exception>
/// <exception cref="T:System.IO.DirectoryNotFoundException">The specified path is invalid. For example, it's on an unmapped drive. Only thrown when setting the property value.</exception>
/// <exception cref="T:System.Security.SecurityException">The caller doesn't have the required permission.</exception>
/// <exception cref="T:System.ArgumentException">The caller attempts to set an invalid file attribute.
/// -or-
/// The user attempts to set an attribute value but doesn't have write permission.</exception>
/// <exception cref="T:System.IO.IOException">
/// <see cref="M:System.IO.FileSystemInfo.Refresh" /> cannot initialize the data.</exception>
// Token: 0x170002CF RID: 719
// (get) Token: 0x060017C1 RID: 6081 RVA: 0x000102F0 File Offset: 0x0000E4F0
// (set) Token: 0x060017C2 RID: 6082 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x170002CF")]
public FileAttributes Attributes
{
[Token(Token = "0x60017C1")]
[Address(RVA = "0x293A210", Offset = "0x2939010", VA = "0x18293A210")]
get
{
return (FileAttributes)0;
}
[Token(Token = "0x60017C2")]
[Address(RVA = "0x293A540", Offset = "0x2939340", VA = "0x18293A540")]
set
{
}
}
/// <summary>Sets the <see cref="T:System.Runtime.Serialization.SerializationInfo" /> object with the file name and additional exception information.</summary>
/// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param>
/// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param>
// Token: 0x060017C3 RID: 6083 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60017C3")]
[Address(RVA = "0x2939E80", Offset = "0x2938C80", VA = "0x182939E80", Slot = "11")]
[ComVisible(false)]
public virtual void GetObjectData(SerializationInfo info, StreamingContext context)
{
}
// Token: 0x170002D0 RID: 720
// (get) Token: 0x060017C4 RID: 6084 RVA: 0x00002082 File Offset: 0x00000282
// (set) Token: 0x060017C5 RID: 6085 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x170002D0")]
internal string DisplayPath
{
[Token(Token = "0x60017C4")]
[Address(RVA = "0x423D40", Offset = "0x422B40", VA = "0x180423D40")]
get
{
return null;
}
[Token(Token = "0x60017C5")]
[Address(RVA = "0x466B90", Offset = "0x465990", VA = "0x180466B90")]
set
{
}
}
// Token: 0x04000CD2 RID: 3282
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
[Token(Token = "0x4000CD2")]
internal MonoIOStat _data;
// Token: 0x04000CD3 RID: 3283
[global::Cpp2IlInjected.FieldOffset(Offset = "0x40")]
[Token(Token = "0x4000CD3")]
internal int _dataInitialised;
// Token: 0x04000CD4 RID: 3284
[Token(Token = "0x4000CD4")]
private const int ERROR_INVALID_PARAMETER = 87;
// Token: 0x04000CD5 RID: 3285
[Token(Token = "0x4000CD5")]
internal const int ERROR_ACCESS_DENIED = 5;
/// <summary>Represents the fully qualified path of the directory or file.</summary>
/// <exception cref="T:System.IO.PathTooLongException">The fully qualified path exceeds the system-defined maximum length.</exception>
// Token: 0x04000CD6 RID: 3286
[global::Cpp2IlInjected.FieldOffset(Offset = "0x48")]
[Token(Token = "0x4000CD6")]
protected string FullPath;
/// <summary>The path originally specified by the user, whether relative or absolute.</summary>
// Token: 0x04000CD7 RID: 3287
[global::Cpp2IlInjected.FieldOffset(Offset = "0x50")]
[Token(Token = "0x4000CD7")]
protected string OriginalPath;
// Token: 0x04000CD8 RID: 3288
[global::Cpp2IlInjected.FieldOffset(Offset = "0x58")]
[Token(Token = "0x4000CD8")]
private string _displayPath;
}
}