packages/System.IO.FileSystem.4.3.0/ref/netstandard1.3/zh-hans/System.IO.FileSystem.xml
(开头部分) 262KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
<?xml version="1.0" encoding="utf-8"?>
<doc>
<assembly>
<name>System.IO.FileSystem</name>
</assembly>
<members>
<member name="T:Microsoft.Win32.SafeHandles.SafeFileHandle">
<summary>表示文件句柄的包装类。</summary>
</member>
<member name="M:Microsoft.Win32.SafeHandles.SafeFileHandle.#ctor(System.IntPtr,System.Boolean)">
<summary>初始化 <see cref="T:Microsoft.Win32.SafeHandles.SafeFileHandle" /> 类的新实例。</summary>
<param name="preexistingHandle">
<see cref="T:System.IntPtr" /> 对象,表示要使用的预先存在的句柄。</param>
<param name="ownsHandle">如果为 true,则在完成阶段可靠地释放句柄;如果为 false,则阻止可靠释放(建议不要这样做)。</param>
</member>
<member name="P:Microsoft.Win32.SafeHandles.SafeFileHandle.IsInvalid"></member>
<member name="T:System.IO.Directory">
<summary>公开用于通过目录和子目录进行创建、移动和枚举的静态方法。此类不能被继承。若要浏览此类型的.NET Framework 源代码,请参阅参考源。</summary>
<filterpriority>1</filterpriority>
</member>
<member name="M:System.IO.Directory.CreateDirectory(System.String)">
<summary>在指定路径中创建所有目录和子目录,除非它们已经存在。</summary>
<returns>一个表示在指定路径的目录的对象。无论指定路径的目录是否已经存在,都将返回此对象。</returns>
<param name="path">要创建的目录。</param>
<exception cref="T:System.IO.IOException">
<paramref name="path" /> 指定的目录是个文件。- 或 -网络名称未知。</exception>
<exception cref="T:System.UnauthorizedAccessException">调用方没有所要求的权限。 </exception>
<exception cref="T:System.ArgumentException">
<paramref name="path" /> 是一个零长度字符串,仅包含空白或者包含一个或多个无效字符。可以使用 <see cref="M:System.IO.Path.GetInvalidPathChars" /> 方法来查询无效字符。- 或 -<paramref name="path" /> 带有冒号字符 (:) 前缀,或仅包含一个冒号字符 (:)。</exception>
<exception cref="T:System.ArgumentNullException">
<paramref name="path" /> 为 null。</exception>
<exception cref="T:System.IO.PathTooLongException">指定的路径、文件名或者两者都超出了系统定义的最大长度。例如,在基于 Windows 的平台上,路径必须小于 248 个字符,文件名必须小于 260 个字符。</exception>
<exception cref="T:System.IO.DirectoryNotFoundException">指定的路径无效(例如,它位于未映射的驱动器上)。 </exception>
<exception cref="T:System.NotSupportedException">
<paramref name="path" /> 包含一个冒号字符 (:),该冒号字符不是驱动器标签(“C:\”)的一部分。</exception>
<filterpriority>1</filterpriority>
<PermissionSet>
<IPermission class="System.Security.Permissions.FileIOPermission, mscorlib, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" version="1" Unrestricted="true" />
</PermissionSet>
</member>
<member name="M:System.IO.Directory.Delete(System.String)">
<summary>从指定路径删除空目录。</summary>
<param name="path">要移除的空目录的名称。此目录必须可写且为空。</param>
<exception cref="T:System.IO.IOException">存在具有相同名称和 <paramref name="path" /> 指定的位置的文件。- 或 -该目录为应用程序的当前工作目录。- 或 -由 <paramref name="path" /> 指定的目录不为空。- 或 -该目录是只读的,或者包含只读文件。- 或 -该目录正被另一个进程使用。</exception>
<exception cref="T:System.UnauthorizedAccessException">调用方没有所要求的权限。 </exception>
<exception cref="T:System.ArgumentException">
<paramref name="path" /> 是一个零长度字符串,仅包含空白或者包含一个或多个无效字符。可以使用 <see cref="M:System.IO.Path.GetInvalidPathChars" /> 方法来查询无效字符。</exception>
<exception cref="T:System.ArgumentNullException">
<paramref name="path" /> 为 null。</exception>
<exception cref="T:System.IO.PathTooLongException">指定的路径、文件名或者两者都超出了系统定义的最大长度。例如,在基于 Windows 的平台上,路径必须小于 248 个字符,文件名必须小于 260 个字符。</exception>
<exception cref="T:System.IO.DirectoryNotFoundException">
<paramref name="path" /> 不存在或未能找到。- 或 -指定的路径无效(例如,它位于未映射的驱动器上)。</exception>
<filterpriority>1</filterpriority>
<PermissionSet>
<IPermission class="System.Security.Permissions.FileIOPermission, mscorlib, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" version="1" Unrestricted="true" />
</PermissionSet>
</member>
<member name="M:System.IO.Directory.Delete(System.String,System.Boolean)">
<summary>删除指定的目录并(如果指示)删除该目录中的所有子目录和文件。</summary>
<param name="path">要移除的目录的名称。 </param>
后面还有 2719+ 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
