packages/System.IO.FileSystem.AccessControl.5.0.0/runtimes/win/lib/net461/System.IO.FileSystem.AccessControl.xml

(开头部分) 63KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

<?xml version="1.0" encoding="utf-8"?>
<doc>
  <assembly>
    <name>System.IO.FileSystem.AccessControl</name>
  </assembly>
  <members>
    <member name="T:System.IO.FileSystemAclExtensions">
      <summary>Provides Windows-specific static extension methods for manipulating Access Control List (ACL) security attributes for files and directories.</summary>
    </member>
    <member name="M:System.IO.FileSystemAclExtensions.Create(System.IO.DirectoryInfo,System.Security.AccessControl.DirectorySecurity)">
      <summary>Creates a new directory, ensuring it is created with the specified directory security. If the directory already exists, nothing is done.</summary>
      <param name="directoryInfo">A directory that does not exist yet that will be created by the method.</param>
      <param name="directorySecurity">The access control and audit security for the directory.</param>
      <exception cref="T:System.ArgumentNullException">
        <paramref name="directoryInfo" /> or <paramref name="directorySecurity" /> is <see langword="null" />.</exception>
      <exception cref="T:System.IO.DirectoryNotFoundException">Could not find a part of the path.</exception>
      <exception cref="T:System.UnauthorizedAccessException">Access to the path is denied.</exception>
    </member>
    <member name="M:System.IO.FileSystemAclExtensions.Create(System.IO.FileInfo,System.IO.FileMode,System.Security.AccessControl.FileSystemRights,System.IO.FileShare,System.Int32,System.IO.FileOptions,System.Security.AccessControl.FileSecurity)">
      <summary>Creates a new file stream, ensuring it is created with the specified properties and security settings.</summary>
      <param name="fileInfo">A file that does not exist yet that will be created by the method.</param>
      <param name="mode">One of the enumeration values that specifies how the operating system should open a file.</param>
      <param name="rights">One of the enumeration values that defines the access rights to use when creating access and audit rules.</param>
      <param name="share">One of the enumeration values for controlling the kind of access other file stream objects can have to the same file.</param>
      <param name="bufferSize">The number of bytes buffered for reads and writes to the file.</param>
      <param name="options">One of the enumeration values that describes how to create or overwrite the file.</param>
      <param name="fileSecurity">An object that determines the access control and audit security for the file.</param>
      <exception cref="T:System.ArgumentException">The <paramref name="rights" /> and <paramref name="mode" /> combination is invalid.</exception>
      <exception cref="T:System.ArgumentNullException">
        <paramref name="fileInfo" /> or <paramref name="fileSecurity" /> is <see langword="null" />.</exception>
      <exception cref="T:System.ArgumentOutOfRangeException">
        <paramref name="mode" /> or <paramref name="share" /> are out of their legal enum range.

-or-

<paramref name="bufferSize" /> is not a positive number.</exception>
      <exception cref="T:System.IO.DirectoryNotFoundException">Could not find a part of the path.</exception>
      <exception cref="T:System.IO.IOException">An I/O error occurred.</exception>
      <exception cref="T:System.UnauthorizedAccessException">Access to the path is denied.</exception>
      <returns>A file stream for the newly created file.</returns>
    </member>
    <member name="M:System.IO.FileSystemAclExtensions.CreateDirectory(System.Security.AccessControl.DirectorySecurity,System.String)">
      <summary>Creates a directory and returns it, ensuring it is created with the specified directory security. If the directory already exists, the existing directory is returned.</summary>
      <param name="directorySecurity">An object that determines the access control and audit security for the directory.</param>
      <param name="path">The path of the directory to create.</param>
      <exception cref="T:System.ArgumentNullException">
        <paramref name="directorySecurity" /> or <paramref name="path" /> is <see langword="null" />.</exception>
      <exception cref="T:System.ArgumentException">
        <paramref name="path" /> is empty.</exception>
      <exception cref="T:System.IO.DirectoryNotFoundException">Could not find a part of the path.</exception>
      <exception cref="T:System.UnauthorizedAccessException">Access to the path is denied.</exception>
      <returns>A directory information object representing either a created directory with the provided security properties, or the existing directory.</returns>
    </member>
    <member name="M:System.IO.FileSystemAclExtensions.GetAccessControl(System.IO.DirectoryInfo)">
      <summary>Returns the security information of a directory.</summary>
      <param name="directoryInfo">The existing directory from which to obtain the security information.</param>
      <returns>The security descriptors of all the access control sections of the directory.</returns>
    </member>
    <member name="M:System.IO.FileSystemAclExtensions.GetAccessControl(System.IO.DirectoryInfo,System.Security.AccessControl.AccessControlSections)">
      <summary>Returns the security information of a directory.</summary>
后面还有 530 行代码,解锁后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。