NativeObjectSecurity 类

定义

提供在不直接作访问控制列表(ACL)的情况下控制对本机对象的访问的功能。 本机对象类型由 ResourceType 枚举定义。

public ref class NativeObjectSecurity abstract : System::Security::AccessControl::CommonObjectSecurity
public abstract class NativeObjectSecurity : System.Security.AccessControl.CommonObjectSecurity
type NativeObjectSecurity = class
    inherit CommonObjectSecurity
Public MustInherit Class NativeObjectSecurity
Inherits CommonObjectSecurity
继承
派生

构造函数

名称 说明
NativeObjectSecurity(Boolean, ResourceType, NativeObjectSecurity+ExceptionFromErrorCode, Object)

使用指定的值初始化类的新实例 NativeObjectSecurity

NativeObjectSecurity(Boolean, ResourceType, SafeHandle, AccessControlSections, NativeObjectSecurity+ExceptionFromErrorCode, Object)

使用指定的值初始化类的新实例 NativeObjectSecurity 。 建议将传递给构造函数的参数的值 includeSections 和持久化方法的值相同。

NativeObjectSecurity(Boolean, ResourceType, SafeHandle, AccessControlSections)

使用指定的值初始化类的新实例 NativeObjectSecurity 。 建议将传递给构造函数的参数的值 includeSections 和持久化方法的值相同。

NativeObjectSecurity(Boolean, ResourceType, String, AccessControlSections, NativeObjectSecurity+ExceptionFromErrorCode, Object)

使用指定的值初始化类的新实例 NativeObjectSecurity 。 建议将传递给构造函数的参数的值 includeSections 和持久化方法的值相同。

NativeObjectSecurity(Boolean, ResourceType, String, AccessControlSections)

使用指定的值初始化类的新实例 NativeObjectSecurity 。 建议将传递给构造函数的参数的值 includeSections 和持久化方法的值相同。

NativeObjectSecurity(Boolean, ResourceType)

使用指定的值初始化类的新实例 NativeObjectSecurity

属性

名称 说明
AccessRightType

Type获取与此ObjectSecurity对象关联的安全对象。

(继承自 ObjectSecurity)
AccessRulesModified

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

(继承自 ObjectSecurity)
AccessRuleType

Type获取与此对象的访问规则ObjectSecurity关联的对象。 该 Type 对象必须是可强制转换为 SecurityIdentifier 对象的对象。

(继承自 ObjectSecurity)
AreAccessRulesCanonical

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

(继承自 ObjectSecurity)
AreAccessRulesProtected

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

(继承自 ObjectSecurity)
AreAuditRulesCanonical

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

(继承自 ObjectSecurity)
AreAuditRulesProtected

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

(继承自 ObjectSecurity)
AuditRulesModified

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

(继承自 ObjectSecurity)
AuditRuleType

Type获取与此对象的审核规则ObjectSecurity关联的对象。 该 Type 对象必须是可强制转换为 SecurityIdentifier 对象的对象。

(继承自 ObjectSecurity)
GroupModified

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

(继承自 ObjectSecurity)
IsContainer

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

(继承自 ObjectSecurity)
IsDS

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

(继承自 ObjectSecurity)
OwnerModified

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

(继承自 ObjectSecurity)

方法

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

使用指定的值初始化类的新实例 AccessRule

(继承自 ObjectSecurity)
AddAccessRule(AccessRule)

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

(继承自 CommonObjectSecurity)
AddAuditRule(AuditRule)

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

(继承自 CommonObjectSecurity)
AuditRuleFactory(IdentityReference, Int32, Boolean, InheritanceFlags, PropagationFlags, AuditFlags)

使用指定的值初始化类的新实例 AuditRule

(继承自 ObjectSecurity)
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 和持久化方法的值相同。

Persist(SafeHandle, AccessControlSections)

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

Persist(String, AccessControlSections, Object)

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

Persist(String, AccessControlSections)

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

PurgeAccessRules(IdentityReference)

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

(继承自 ObjectSecurity)
PurgeAuditRules(IdentityReference)

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

(继承自 ObjectSecurity)
ReadLock()

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

(继承自 ObjectSecurity)
ReadUnlock()

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

(继承自 ObjectSecurity)
RemoveAccessRule(AccessRule)

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

(继承自 CommonObjectSecurity)
RemoveAccessRuleAll(AccessRule)

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

(继承自 CommonObjectSecurity)
RemoveAccessRuleSpecific(AccessRule)

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

(继承自 CommonObjectSecurity)
RemoveAuditRule(AuditRule)

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

(继承自 CommonObjectSecurity)
RemoveAuditRuleAll(AuditRule)

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

(继承自 CommonObjectSecurity)
RemoveAuditRuleSpecific(AuditRule)

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

(继承自 CommonObjectSecurity)
ResetAccessRule(AccessRule)

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

(继承自 CommonObjectSecurity)
SetAccessRule(AccessRule)

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

(继承自 CommonObjectSecurity)
SetAccessRuleProtection(Boolean, Boolean)

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

(继承自 ObjectSecurity)
SetAuditRule(AuditRule)

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

(继承自 CommonObjectSecurity)
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)

适用于