﻿<?xml version="1.0" encoding="utf-8"?><Type Name="FileSystemAuditRule" FullName="System.Security.AccessControl.FileSystemAuditRule"><TypeSignature Language="C#" Value="public sealed class FileSystemAuditRule : System.Security.AccessControl.AuditRule" /><TypeSignature Language="ILAsm" Value=".class public auto ansi sealed beforefieldinit FileSystemAuditRule extends System.Security.AccessControl.AuditRule" /><AssemblyInfo><AssemblyName>mscorlib</AssemblyName><AssemblyVersion>2.0.0.0</AssemblyVersion><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><Base><BaseTypeName>System.Security.AccessControl.AuditRule</BaseTypeName></Base><Interfaces /><Docs><since version=".NET 2.0" /><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>The <see cref="T:System.Security.AccessControl.FileSystemAuditRule" /> class represents an abstraction of an underlying access control entry (ACE) that specifies a user account, the type of access to provide (read, write, and so on), and whether to perform auditing.  This class can also specify how audit rules are inherited from and propagated to objects.</para><para>To permit file and directory auditing on Windows NT or later, you must enable Audit Access Security policy on your machine.  By default, this policy is set to No Auditing.</para><para>To enable the Audit Access Security policy, perform the following steps:</para><list type="ordered"><item><para>Open the <ui>Local Security Settings</ui> Microsoft Management Console (MMC) snap-in, located in the Administrative Tools folder.</para></item><item><para>Expand the Local Policies folder and left-click the Audit Policy folder.</para></item><item><para>Double-click the <ui>Audit object access</ui> entry on the right pane of the MMC snap-in, or right-click and choose Properties to display the <ui>Audit object access properties</ui> dialog box. </para></item><item><para>Select the <ui>Success</ui> or <ui>Failure</ui> check boxes to log successes or failures.   </para></item></list><para>Note that an audit rule for a user account requires a corresponding access rule for the same user account.  </para><para>Use the <see cref="T:System.Security.AccessControl.FileSystemAuditRule" /> class to create a new audit rule.  You can persist this rule using the <see cref="T:System.Security.AccessControl.FileSecurity" /> or <see cref="T:System.Security.AccessControl.DirectorySecurity" /> class.</para></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Represents an abstraction of an access control entry (ACE) that defines an audit rule for a file or directory. This class cannot be inherited.</para></summary></Docs><Members><Member MemberName=".ctor"><MemberSignature Language="C#" Value="public FileSystemAuditRule (System.Security.Principal.IdentityReference identity, System.Security.AccessControl.FileSystemRights fileSystemRights, System.Security.AccessControl.AuditFlags flags);" /><MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor(class System.Security.Principal.IdentityReference identity, valuetype System.Security.AccessControl.FileSystemRights fileSystemRights, valuetype System.Security.AccessControl.AuditFlags flags) cil managed" /><MemberType>Constructor</MemberType><AssemblyInfo><AssemblyVersion>2.0.0.0</AssemblyVersion><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><Parameters><Parameter Name="identity" Type="System.Security.Principal.IdentityReference" /><Parameter Name="fileSystemRights" Type="System.Security.AccessControl.FileSystemRights" /><Parameter Name="flags" Type="System.Security.AccessControl.AuditFlags" /></Parameters><Docs><since version=".NET 2.0" /><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>Use this constructor to create an audit rule that you can persist using the <see cref="T:System.Security.AccessControl.FileSecurity" /> or <see cref="T:System.Security.AccessControl.DirectorySecurity" /> class.  Audit rules determine when and how actions performed on system objects, such as files and folders, are logged.</para></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Initializes a new instance of the <see cref="T:System.Security.AccessControl.FileSystemAuditRule" /> class using a reference to a user account, a value that specifies the type of operation associated with the audit rule, and a value that specifies when to perform auditing. </para></summary><param name="identity"><attribution license="cc4" from="Microsoft" modified="false" />An <see cref="T:System.Security.Principal.IdentityReference" /> object that encapsulates a reference to a user account.</param><param name="fileSystemRights"><attribution license="cc4" from="Microsoft" modified="false" />One of the <see cref="T:System.Security.AccessControl.FileSystemRights" /> values that specifies the type of operation associated with the audit rule. </param><param name="flags"><attribution license="cc4" from="Microsoft" modified="false" />One of the <see cref="T:System.Security.AccessControl.AuditFlags" /> values that specifies when to perform auditing.</param></Docs></Member><Member MemberName=".ctor"><MemberSignature Language="C#" Value="public FileSystemAuditRule (string identity, System.Security.AccessControl.FileSystemRights fileSystemRights, System.Security.AccessControl.AuditFlags flags);" /><MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor(string identity, valuetype System.Security.AccessControl.FileSystemRights fileSystemRights, valuetype System.Security.AccessControl.AuditFlags flags) cil managed" /><MemberType>Constructor</MemberType><AssemblyInfo><AssemblyVersion>2.0.0.0</AssemblyVersion><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><Parameters><Parameter Name="identity" Type="System.String" /><Parameter Name="fileSystemRights" Type="System.Security.AccessControl.FileSystemRights" /><Parameter Name="flags" Type="System.Security.AccessControl.AuditFlags" /></Parameters><Docs><since version=".NET 2.0" /><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>Use this constructor to create an audit rule that you can persist using the <see cref="T:System.Security.AccessControl.FileSecurity" /> or <see cref="T:System.Security.AccessControl.DirectorySecurity" /> class.  Audit rules determine when and how actions performed on system objects, such as files and folders, are logged.</para><para>The <paramref name="identity" /> parameter must identify a valid account on the current computer or domain.  The string takes the following form, where <paramref name="DOMAIN" /> is the name of a valid domain or computer name and <paramref name="account" /> is the name of a valid user account on a domain or computer: <paramref name="DOMAIN\account" />.</para></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Initializes a new instance of the <see cref="T:System.Security.AccessControl.FileSystemAuditRule" /> class using a user account name, a value that specifies the type of operation associated with the audit rule, and a value that specifies when to perform auditing.</para></summary><param name="identity"><attribution license="cc4" from="Microsoft" modified="false" />The name of a user account.</param><param name="fileSystemRights"><attribution license="cc4" from="Microsoft" modified="false" />One of the <see cref="T:System.Security.AccessControl.FileSystemRights" /> values that specifies the type of operation associated with the audit rule. </param><param name="flags"><attribution license="cc4" from="Microsoft" modified="false" />One of the <see cref="T:System.Security.AccessControl.AuditFlags" /> values that specifies when to perform auditing.</param></Docs></Member><Member MemberName=".ctor"><MemberSignature Language="C#" Value="public FileSystemAuditRule (System.Security.Principal.IdentityReference identity, System.Security.AccessControl.FileSystemRights fileSystemRights, System.Security.AccessControl.InheritanceFlags inheritanceFlags, System.Security.AccessControl.PropagationFlags propagationFlags, System.Security.AccessControl.AuditFlags flags);" /><MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor(class System.Security.Principal.IdentityReference identity, valuetype System.Security.AccessControl.FileSystemRights fileSystemRights, valuetype System.Security.AccessControl.InheritanceFlags inheritanceFlags, valuetype System.Security.AccessControl.PropagationFlags propagationFlags, valuetype System.Security.AccessControl.AuditFlags flags) cil managed" /><MemberType>Constructor</MemberType><AssemblyInfo><AssemblyVersion>2.0.0.0</AssemblyVersion><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><Parameters><Parameter Name="identity" Type="System.Security.Principal.IdentityReference" /><Parameter Name="fileSystemRights" Type="System.Security.AccessControl.FileSystemRights" /><Parameter Name="inheritanceFlags" Type="System.Security.AccessControl.InheritanceFlags" /><Parameter Name="propagationFlags" Type="System.Security.AccessControl.PropagationFlags" /><Parameter Name="flags" Type="System.Security.AccessControl.AuditFlags" /></Parameters><Docs><since version=".NET 2.0" /><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>Use this constructor to create an audit rule that you can persist using the <see cref="T:System.Security.AccessControl.FileSecurity" /> or <see cref="T:System.Security.AccessControl.DirectorySecurity" /> class.  Audit rules determine when and how actions performed on system objects, such as files and folders, are logged.</para></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Initializes a new instance of the <see cref="T:System.Security.AccessControl.FileSystemAuditRule" /> class using the name of a reference to a user account, a value that specifies the type of operation associated with the audit rule, a value that determines how rights are inherited, a value that determines how rights are propagated, and a value that specifies when to perform auditing.  </para></summary><param name="identity"><attribution license="cc4" from="Microsoft" modified="false" />An <see cref="T:System.Security.Principal.IdentityReference" /> object that encapsulates a reference to a user account.</param><param name="fileSystemRights"><attribution license="cc4" from="Microsoft" modified="false" />One of the <see cref="T:System.Security.AccessControl.FileSystemRights" /> values that specifies the type of operation associated with the audit rule.</param><param name="inheritanceFlags"><attribution license="cc4" from="Microsoft" modified="false" />One of the <see cref="T:System.Security.AccessControl.InheritanceFlags" /> values that specifies how access masks are propagated to child objects.</param><param name="propagationFlags"><attribution license="cc4" from="Microsoft" modified="false" />One of the <see cref="T:System.Security.AccessControl.PropagationFlags" /> values that specifies how Access Control Entries (ACEs) are propagated to child objects.</param><param name="flags"><attribution license="cc4" from="Microsoft" modified="false" />One of the <see cref="T:System.Security.AccessControl.AuditFlags" /> values that specifies when to perform auditing.</param></Docs></Member><Member MemberName=".ctor"><MemberSignature Language="C#" Value="public FileSystemAuditRule (string identity, System.Security.AccessControl.FileSystemRights fileSystemRights, System.Security.AccessControl.InheritanceFlags inheritanceFlags, System.Security.AccessControl.PropagationFlags propagationFlags, System.Security.AccessControl.AuditFlags flags);" /><MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor(string identity, valuetype System.Security.AccessControl.FileSystemRights fileSystemRights, valuetype System.Security.AccessControl.InheritanceFlags inheritanceFlags, valuetype System.Security.AccessControl.PropagationFlags propagationFlags, valuetype System.Security.AccessControl.AuditFlags flags) cil managed" /><MemberType>Constructor</MemberType><AssemblyInfo><AssemblyVersion>2.0.0.0</AssemblyVersion><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><Parameters><Parameter Name="identity" Type="System.String" /><Parameter Name="fileSystemRights" Type="System.Security.AccessControl.FileSystemRights" /><Parameter Name="inheritanceFlags" Type="System.Security.AccessControl.InheritanceFlags" /><Parameter Name="propagationFlags" Type="System.Security.AccessControl.PropagationFlags" /><Parameter Name="flags" Type="System.Security.AccessControl.AuditFlags" /></Parameters><Docs><since version=".NET 2.0" /><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>Use this constructor to create an audit rule that you can persist using the <see cref="T:System.Security.AccessControl.FileSecurity" /> or <see cref="T:System.Security.AccessControl.DirectorySecurity" /> class.  Audit rules determine when and how actions performed on system objects, such as files and folders, are logged.</para><para>The <paramref name="identity" /> parameter must identify a valid account on the current computer or domain.  The string takes the following form, where <paramref name="DOMAIN" /> is the name of a valid domain or computer name and <paramref name="account" /> is the name of a valid user account on a domain or computer: <paramref name="DOMAIN\account" />.</para></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Initializes a new instance of the <see cref="T:System.Security.AccessControl.FileSystemAuditRule" /> class using the name of a user account, a value that specifies the type of operation associated with the audit rule, a value that determines how rights are inherited, a value that determines how rights are propagated, and a value that specifies when to perform auditing. </para></summary><param name="identity"><attribution license="cc4" from="Microsoft" modified="false" />The name of a user account.</param><param name="fileSystemRights"><attribution license="cc4" from="Microsoft" modified="false" />One of the <see cref="T:System.Security.AccessControl.FileSystemRights" /> values that specifies the type of operation associated with the audit rule.</param><param name="inheritanceFlags"><attribution license="cc4" from="Microsoft" modified="false" />One of the <see cref="T:System.Security.AccessControl.InheritanceFlags" /> values that specifies how access masks are propagated to child objects.</param><param name="propagationFlags"><attribution license="cc4" from="Microsoft" modified="false" />One of the <see cref="T:System.Security.AccessControl.PropagationFlags" /> values that specifies how Access Control Entries (ACEs) are propagated to child objects.</param><param name="flags"><attribution license="cc4" from="Microsoft" modified="false" />One of the <see cref="T:System.Security.AccessControl.AuditFlags" /> values that specifies when to perform auditing.</param></Docs></Member><Member MemberName="FileSystemRights"><MemberSignature Language="C#" Value="public System.Security.AccessControl.FileSystemRights FileSystemRights { get; }" /><MemberSignature Language="ILAsm" Value=".property instance valuetype System.Security.AccessControl.FileSystemRights FileSystemRights" /><MemberType>Property</MemberType><AssemblyInfo><AssemblyVersion>2.0.0.0</AssemblyVersion><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.Security.AccessControl.FileSystemRights</ReturnType></ReturnValue><Docs><value>To be added.</value><remarks>To be added.</remarks><since version=".NET 2.0" /><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Gets the <see cref="T:System.Security.AccessControl.FileSystemRights" /> flags associated with the current <see cref="T:System.Security.AccessControl.FileSystemAuditRule" /> object.</para></summary></Docs></Member></Members></Type>