MemoryMappedFileSecurity 类

定义

表示可以授予对内存映射文件进行文件访问和操作的权限。

public ref class MemoryMappedFileSecurity : System::Security::AccessControl::ObjectSecurity<System::IO::MemoryMappedFiles::MemoryMappedFileRights>
public class MemoryMappedFileSecurity : System.Security.AccessControl.ObjectSecurity<System.IO.MemoryMappedFiles.MemoryMappedFileRights>
type MemoryMappedFileSecurity = class
    inherit ObjectSecurity<MemoryMappedFileRights>
Public Class MemoryMappedFileSecurity
Inherits ObjectSecurity(Of MemoryMappedFileRights)
继承

注解

MemoryMappedFileSecurity 类指定内存映射文件的访问权限以及如何审核访问尝试。 此类将访问和审核权限表示为一组规则。

MemoryMappedFileSecurity 类是基础Microsoft Windows文件安全系统的抽象。 在此系统中。 它隐藏 DACL 和 SCL 的许多详细信息。

使用 MemoryMappedFileSecurity 类检索、添加或更改表示管道的 DACL 和 SACL 的访问规则。

若要对内存映射文件应用新的或更改的访问权限或审核规则,请使用此方法 SetAccessControl 。 若要从现有文件检索访问或审核规则,请使用 GetAccessControl 该方法。

以下 MemoryMappedFile 方法采用 MemoryMappedFileSecurity 对象作为参数:

构造函数

名称 说明
MemoryMappedFileSecurity()

初始化 MemoryMappedFileSecurity 类的新实例。

属性

名称 说明
AccessRightType

获取与此 ObjectSecurity'1 对象关联的安全对象的类型。

(继承自 ObjectSecurity<T>)
AccessRulesModified

获取或设置一个布尔值,该值指定是否已修改与此 ObjectSecurity 对象关联的访问规则。

(继承自 ObjectSecurity)
AccessRuleType

获取与此 ObjectSecurity'1 对象的访问规则关联的对象的类型。

(继承自 ObjectSecurity<T>)
AreAccessRulesCanonical

获取一个布尔值,该值指定与此 ObjectSecurity 对象关联的访问规则是否按规范顺序排列。

(继承自 ObjectSecurity)
AreAccessRulesProtected

获取一个布尔值,该值指定是否保护与此对象关联的 ObjectSecurity 自由访问控制列表(DACL)。

(继承自 ObjectSecurity)
AreAuditRulesCanonical

获取一个布尔值,该值指定与此 ObjectSecurity 对象关联的审核规则是否按规范顺序排列。

(继承自 ObjectSecurity)
AreAuditRulesProtected

获取一个布尔值,该值指定是否保护与此 ObjectSecurity 对象关联的系统访问控制列表(SACL)。

(继承自 ObjectSecurity)
AuditRulesModified

获取或设置一个布尔值,该值指定是否已修改与此 ObjectSecurity 对象关联的审核规则。

(继承自 ObjectSecurity)
AuditRuleType

获取与此 ObjectSecurity'1 对象的审核规则关联的 Type 对象。

(继承自 ObjectSecurity<T>)
GroupModified

获取或设置一个布尔值,该值指定是否已修改与安全对象关联的组。

(继承自 ObjectSecurity)
IsContainer

获取一个布尔值,该值指定此 ObjectSecurity 对象是否为容器对象。

(继承自 ObjectSecurity)
IsDS

获取一个布尔值,该值指定此 ObjectSecurity 对象是否为目录对象。

(继承自 ObjectSecurity)
OwnerModified

获取或设置一个布尔值,该值指定是否修改了安全对象所有者。

(继承自 ObjectSecurity)

方法

名称 说明
AccessRuleFactory(IdentityReference, Int32, Boolean, InheritanceFlags, PropagationFlags, AccessControlType)

初始化 ObjectAccessRule 类的新实例,该实例表示关联的安全对象的新访问控制规则。

(继承自 ObjectSecurity<T>)
AddAccessRule(AccessRule)

将指定的访问规则添加到与此 CommonObjectSecurity 对象关联的自由访问控制列表(DACL)。

(继承自 CommonObjectSecurity)
AddAccessRule(AccessRule<T>)

将指定的访问规则添加到与此 ObjectSecurity'1 对象关联的可自由访问控制列表(DACL)。

(继承自 ObjectSecurity<T>)
AddAuditRule(AuditRule)

将指定的审核规则添加到与此 CommonObjectSecurity 对象关联的系统访问控制列表(SACL)。

(继承自 CommonObjectSecurity)
AddAuditRule(AuditRule<T>)

将指定的审核规则添加到与此 ObjectSecurity'1 对象关联的系统访问控制列表(SACL)。

(继承自 ObjectSecurity<T>)
AuditRuleFactory(IdentityReference, Int32, Boolean, InheritanceFlags, PropagationFlags, AuditFlags)

初始化表示指定用户的指定审核规则的 AuditRule 类的新实例。

(继承自 ObjectSecurity<T>)
Equals(Object)

确定指定的对象是否等于当前对象。

(继承自 Object)
GetAccessRules(Boolean, Boolean, Type)

获取与指定安全标识符关联的访问规则的集合。

(继承自 CommonObjectSecurity)
GetAuditRules(Boolean, Boolean, Type)

获取与指定安全标识符关联的审核规则的集合。

(继承自 CommonObjectSecurity)
GetGroup(Type)

获取与指定所有者关联的主组。

(继承自 ObjectSecurity)
GetHashCode()

用作默认哈希函数。

(继承自 Object)
GetOwner(Type)

获取与指定主组关联的所有者。

(继承自 ObjectSecurity)
GetSecurityDescriptorBinaryForm()

返回一个字节值数组,表示此 ObjectSecurity 对象的安全描述符信息。

(继承自 ObjectSecurity)
GetSecurityDescriptorSddlForm(AccessControlSections)

返回与此对象关联的 ObjectSecurity 安全描述符的指定节的安全描述符定义语言(SDDL)表示形式。

(继承自 ObjectSecurity)
GetType()

获取当前实例的 Type

(继承自 Object)
MemberwiseClone()

创建当前 Object的浅表副本。

(继承自 Object)
ModifyAccess(AccessControlModification, AccessRule, Boolean)

将指定的修改应用于与此 CommonObjectSecurity 对象关联的自由访问控制列表(DACL)。

(继承自 CommonObjectSecurity)
ModifyAccessRule(AccessControlModification, AccessRule, Boolean)

将指定的修改应用于与此 ObjectSecurity 对象关联的自由访问控制列表(DACL)。

(继承自 ObjectSecurity)
ModifyAudit(AccessControlModification, AuditRule, Boolean)

将指定的修改应用于与此 CommonObjectSecurity 对象关联的系统访问控制列表(SACL)。

(继承自 CommonObjectSecurity)
ModifyAuditRule(AccessControlModification, AuditRule, Boolean)

将指定的修改应用于与此 ObjectSecurity 对象关联的系统访问控制列表(SACL)。

(继承自 ObjectSecurity)
Persist(Boolean, String, AccessControlSections)

将与此 ObjectSecurity 对象关联的安全描述符的指定部分保存到永久存储。 建议将传递给构造函数的参数的值 includeSections 和持久化方法的值相同。

(继承自 ObjectSecurity)
Persist(SafeHandle, AccessControlSections, Object)

将与此 NativeObjectSecurity 对象关联的安全描述符的指定部分保存到永久存储。 建议将传递给构造函数的参数的值 includeSections 和持久化方法的值相同。

(继承自 NativeObjectSecurity)
Persist(SafeHandle, AccessControlSections)

将与此 NativeObjectSecurity 对象关联的安全描述符的指定部分保存到永久存储。 建议保留传递给构造函数的参数的值 includeSections ,并且持久化方法的值相同。

(继承自 NativeObjectSecurity)
Persist(SafeHandle)

使用指定的句柄将与此 ObjectSecurity'1 对象关联的安全描述符保存到永久存储。

(继承自 ObjectSecurity<T>)
Persist(String, AccessControlSections, Object)

将与此 NativeObjectSecurity 对象关联的安全描述符的指定部分保存到永久存储。 建议将传递给构造函数的参数的值 includeSections 和持久化方法的值相同。

(继承自 NativeObjectSecurity)
Persist(String, AccessControlSections)

将与此 NativeObjectSecurity 对象关联的安全描述符的指定部分保存到永久存储。 建议将传递给构造函数的参数的值 includeSections 和持久化方法的值相同。

(继承自 NativeObjectSecurity)
Persist(String)

使用指定的名称将与此 ObjectSecurity'1 对象关联的安全描述符保存到永久存储。

(继承自 ObjectSecurity<T>)
PurgeAccessRules(IdentityReference)

删除与指定 IdentityReference项关联的所有访问规则。

(继承自 ObjectSecurity)
PurgeAuditRules(IdentityReference)

删除与指定 IdentityReference项关联的所有审核规则。

(继承自 ObjectSecurity)
ReadLock()

锁定此 ObjectSecurity 对象进行读取访问。

(继承自 ObjectSecurity)
ReadUnlock()

解锁此 ObjectSecurity 对象以供读取访问。

(继承自 ObjectSecurity)
RemoveAccessRule(AccessRule)

从与此对象关联的 CommonObjectSecurity 自由访问控制列表(DACL)中删除包含与指定访问规则相同的安全标识符和访问掩码的访问规则。

(继承自 CommonObjectSecurity)
RemoveAccessRule(AccessRule<T>)

从与此 ObjectSecurity'1 对象关联的自由访问控制列表(DACL)中删除包含与指定访问规则相同的安全标识符和访问掩码的访问规则。

(继承自 ObjectSecurity<T>)
RemoveAccessRuleAll(AccessRule)

从与此 CommonObjectSecurity 对象关联的自由访问控制列表(DACL)中删除与指定访问规则具有相同安全标识符的所有访问规则。

(继承自 CommonObjectSecurity)
RemoveAccessRuleAll(AccessRule<T>)

从与此 ObjectSecurity'1 对象关联的自由访问控制列表(DACL)中删除与指定访问规则具有相同安全标识符的所有访问规则。

(继承自 ObjectSecurity<T>)
RemoveAccessRuleSpecific(AccessRule)

从与此 CommonObjectSecurity 对象关联的自由访问控制列表(DACL)中删除与指定访问规则完全匹配的所有访问规则。

(继承自 CommonObjectSecurity)
RemoveAccessRuleSpecific(AccessRule<T>)

从与此 ObjectSecurity'1 对象关联的任意访问控制列表(DACL)中删除与指定访问规则完全匹配的所有访问规则。

(继承自 ObjectSecurity<T>)
RemoveAuditRule(AuditRule)

从与此对象关联的 CommonObjectSecurity 系统访问控制列表(SACL)中删除包含与指定的审核规则相同的安全标识符和访问掩码的审核规则。

(继承自 CommonObjectSecurity)
RemoveAuditRule(AuditRule<T>)

从与此 ObjectSecurity'1 对象关联的系统访问控制列表(SACL)中删除包含与指定的审核规则相同的安全标识符和访问掩码的审核规则。

(继承自 ObjectSecurity<T>)
RemoveAuditRuleAll(AuditRule)

从与此 CommonObjectSecurity 对象关联的系统访问控制列表(SACL)中删除与指定的审核规则具有相同安全标识符的所有审核规则。

(继承自 CommonObjectSecurity)
RemoveAuditRuleAll(AuditRule<T>)

从与此 ObjectSecurity'1 对象关联的系统访问控制列表(SACL)中删除具有相同安全标识符的所有审核规则。

(继承自 ObjectSecurity<T>)
RemoveAuditRuleSpecific(AuditRule)

从与此 CommonObjectSecurity 对象关联的系统访问控制列表(SACL)中删除与指定的审核规则完全匹配的所有审核规则。

(继承自 CommonObjectSecurity)
RemoveAuditRuleSpecific(AuditRule<T>)

从与此 ObjectSecurity'1 对象关联的系统访问控制列表(SACL)中删除与指定的审核规则完全匹配的所有审核规则。

(继承自 ObjectSecurity<T>)
ResetAccessRule(AccessRule)

删除与此 CommonObjectSecurity 对象关联的任意访问控制列表(DACL)中的所有访问规则,然后添加指定的访问规则。

(继承自 CommonObjectSecurity)
ResetAccessRule(AccessRule<T>)

删除与此 ObjectSecurity'1 对象关联的任意访问控制列表(DACL)中的所有访问规则,然后添加指定的访问规则。

(继承自 ObjectSecurity<T>)
SetAccessRule(AccessRule)

删除与与此对象关联的 CommonObjectSecurity 自由访问控制列表(DACL)中包含与指定访问规则相同的安全标识符和限定符的所有访问规则,然后添加指定的访问规则。

(继承自 CommonObjectSecurity)
SetAccessRule(AccessRule<T>)

删除与与此 ObjectSecurity'1 对象关联的自由访问控制列表(DACL)中包含与指定访问规则相同的安全标识符和限定符的所有访问规则,然后添加指定的访问规则。

(继承自 ObjectSecurity<T>)
SetAccessRuleProtection(Boolean, Boolean)

设置或删除与此 ObjectSecurity 对象关联的访问规则的保护。 父对象无法通过继承修改受保护的访问规则。

(继承自 ObjectSecurity)
SetAuditRule(AuditRule)

删除与与此 CommonObjectSecurity 对象关联的系统访问控制列表(SACL)中包含与指定的审核规则相同的安全标识符和限定符的所有审核规则,然后添加指定的审核规则。

(继承自 CommonObjectSecurity)
SetAuditRule(AuditRule<T>)

删除与此 ObjectSecurity'1 对象关联的系统访问控制列表(SACL)中包含与指定的审核规则相同的安全标识符和限定符的所有审核规则,然后添加指定的审核规则。

(继承自 ObjectSecurity<T>)
SetAuditRuleProtection(Boolean, Boolean)

设置或删除与此对象关联的 ObjectSecurity 审核规则的保护。 父对象无法通过继承修改受保护的审核规则。

(继承自 ObjectSecurity)
SetGroup(IdentityReference)

设置与此 ObjectSecurity 对象关联的安全描述符的主组。

(继承自 ObjectSecurity)
SetOwner(IdentityReference)

设置与此 ObjectSecurity 对象关联的安全描述符的所有者。

(继承自 ObjectSecurity)
SetSecurityDescriptorBinaryForm(Byte[], AccessControlSections)

从指定的字节值数组中设置此 ObjectSecurity 对象的安全描述符的指定节。

(继承自 ObjectSecurity)
SetSecurityDescriptorBinaryForm(Byte[])

从指定的字节值数组中设置此 ObjectSecurity 对象的安全描述符。

(继承自 ObjectSecurity)
SetSecurityDescriptorSddlForm(String, AccessControlSections)

从指定的安全描述符定义语言 (SDDL) 字符串设置此 ObjectSecurity 对象的安全描述符的指定节。

(继承自 ObjectSecurity)
SetSecurityDescriptorSddlForm(String)

从指定的安全描述符定义语言 (SDDL) 字符串设置此 ObjectSecurity 对象的安全描述符。

(继承自 ObjectSecurity)
ToString()

返回一个表示当前对象的字符串。

(继承自 Object)
WriteLock()

锁定此 ObjectSecurity 对象进行写入访问。

(继承自 ObjectSecurity)
WriteUnlock()

解锁此 ObjectSecurity 对象以便进行写入访问。

(继承自 ObjectSecurity)

适用于