CommonSecurityDescriptor 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
初始化 CommonSecurityDescriptor 类的新实例。
重载
CommonSecurityDescriptor(Boolean, Boolean, RawSecurityDescriptor)
- Source:
- SecurityDescriptor.cs
从指定CommonSecurityDescriptor对象初始化类的新实例RawSecurityDescriptor。
public:
CommonSecurityDescriptor(bool isContainer, bool isDS, System::Security::AccessControl::RawSecurityDescriptor ^ rawSecurityDescriptor);
public CommonSecurityDescriptor(bool isContainer, bool isDS, System.Security.AccessControl.RawSecurityDescriptor rawSecurityDescriptor);
new System.Security.AccessControl.CommonSecurityDescriptor : bool * bool * System.Security.AccessControl.RawSecurityDescriptor -> System.Security.AccessControl.CommonSecurityDescriptor
Public Sub New (isContainer As Boolean, isDS As Boolean, rawSecurityDescriptor As RawSecurityDescriptor)
参数
- isContainer
- Boolean
true 如果新的安全描述符与容器对象相关联,
- isDS
- Boolean
true 如果新的安全描述符与目录对象相关联,
- rawSecurityDescriptor
- RawSecurityDescriptor
RawSecurityDescriptor要从中创建新CommonSecurityDescriptor对象的对象。
注解
如果从中创建新 RawSecurityDescriptor 对象的基础安全描述符包含 null 其自由访问控制列表(DACL),则会向 DACL 添加一个允许每个人完全访问(AEFA)的访问控制条目(ACE)。 如果应用程序修改已向其添加 AEFA ACE 的安全描述符的 DACL,则当 DACL 持久化时,AEFA ACE 会与 DACL 一起保留。
这可能会导致应用程序无意中允许访问主体。 因此,应用程序应检查 AEFA ACE 是否存在,并在修改任何安全描述符之前将其删除。
适用于
CommonSecurityDescriptor(Boolean, Boolean, String)
- Source:
- SecurityDescriptor.cs
从指定的安全描述符定义语言 (SDDL) 字符串初始化类的新实例 CommonSecurityDescriptor 。
public:
CommonSecurityDescriptor(bool isContainer, bool isDS, System::String ^ sddlForm);
public CommonSecurityDescriptor(bool isContainer, bool isDS, string sddlForm);
new System.Security.AccessControl.CommonSecurityDescriptor : bool * bool * string -> System.Security.AccessControl.CommonSecurityDescriptor
Public Sub New (isContainer As Boolean, isDS As Boolean, sddlForm As String)
参数
- isContainer
- Boolean
true 如果新的安全描述符与容器对象相关联,
- isDS
- Boolean
true 如果新的安全描述符与目录对象相关联,
- sddlForm
- String
从中创建新 CommonSecurityDescriptor 对象的 SDDL 字符串。
注解
如果从中创建新 RawSecurityDescriptor 对象的基础安全描述符包含 null 其自由访问控制列表(DACL),则会向 DACL 添加一个允许每个人完全访问(AEFA)的访问控制条目(ACE)。 如果应用程序修改已向其添加 AEFA ACE 的安全描述符的 DACL,则当 DACL 持久化时,AEFA ACE 会与 DACL 一起保留。
这可能会导致应用程序无意中允许访问主体。 因此,应用程序应检查 AEFA ACE 是否存在,并在修改任何安全描述符之前将其删除。
适用于
CommonSecurityDescriptor(Boolean, Boolean, Byte[], Int32)
- Source:
- SecurityDescriptor.cs
从指定的字节值数组初始化类的新实例 CommonSecurityDescriptor 。
public:
CommonSecurityDescriptor(bool isContainer, bool isDS, cli::array <System::Byte> ^ binaryForm, int offset);
public CommonSecurityDescriptor(bool isContainer, bool isDS, byte[] binaryForm, int offset);
new System.Security.AccessControl.CommonSecurityDescriptor : bool * bool * byte[] * int -> System.Security.AccessControl.CommonSecurityDescriptor
Public Sub New (isContainer As Boolean, isDS As Boolean, binaryForm As Byte(), offset As Integer)
参数
- isContainer
- Boolean
true 如果新的安全描述符与容器对象相关联,
- isDS
- Boolean
true 如果新的安全描述符与目录对象相关联,
- binaryForm
- Byte[]
要从中创建新 CommonSecurityDescriptor 对象的字节值的数组。
- offset
- Int32
数组中 binaryForm 开始复制的偏移量。
注解
如果为其自由访问控制列表(DACL)创建了RawSecurityDescriptor新null对象的基础安全描述符,则会向 DACL 添加允许每个人完全访问(AEFA)的单个访问控制条目(ACE)。 如果应用程序修改已向其添加 AEFA ACE 的安全描述符的 DACL,则当 DACL 持久化时,AEFA ACE 会与 DACL 一起保留。
这可能会导致应用程序无意中允许访问主体。 因此,应用程序应检查 AEFA ACE 是否存在,并在修改任何安全描述符之前将其删除。
适用于
CommonSecurityDescriptor(Boolean, Boolean, ControlFlags, SecurityIdentifier, SecurityIdentifier, SystemAcl, DiscretionaryAcl)
- Source:
- SecurityDescriptor.cs
从指定信息初始化类的新实例 CommonSecurityDescriptor 。
public:
CommonSecurityDescriptor(bool isContainer, bool isDS, System::Security::AccessControl::ControlFlags flags, System::Security::Principal::SecurityIdentifier ^ owner, System::Security::Principal::SecurityIdentifier ^ group, System::Security::AccessControl::SystemAcl ^ systemAcl, System::Security::AccessControl::DiscretionaryAcl ^ discretionaryAcl);
public CommonSecurityDescriptor(bool isContainer, bool isDS, System.Security.AccessControl.ControlFlags flags, System.Security.Principal.SecurityIdentifier? owner, System.Security.Principal.SecurityIdentifier? group, System.Security.AccessControl.SystemAcl? systemAcl, System.Security.AccessControl.DiscretionaryAcl? discretionaryAcl);
public CommonSecurityDescriptor(bool isContainer, bool isDS, System.Security.AccessControl.ControlFlags flags, System.Security.Principal.SecurityIdentifier owner, System.Security.Principal.SecurityIdentifier group, System.Security.AccessControl.SystemAcl systemAcl, System.Security.AccessControl.DiscretionaryAcl discretionaryAcl);
new System.Security.AccessControl.CommonSecurityDescriptor : bool * bool * System.Security.AccessControl.ControlFlags * System.Security.Principal.SecurityIdentifier * System.Security.Principal.SecurityIdentifier * System.Security.AccessControl.SystemAcl * System.Security.AccessControl.DiscretionaryAcl -> System.Security.AccessControl.CommonSecurityDescriptor
Public Sub New (isContainer As Boolean, isDS As Boolean, flags As ControlFlags, owner As SecurityIdentifier, group As SecurityIdentifier, systemAcl As SystemAcl, discretionaryAcl As DiscretionaryAcl)
参数
- isContainer
- Boolean
true 如果新的安全描述符与容器对象相关联,
- isDS
- Boolean
true 如果新的安全描述符与目录对象相关联,
- flags
- ControlFlags
指定新 CommonSecurityDescriptor 对象的行为的标志。
- owner
- SecurityIdentifier
新 CommonSecurityDescriptor 对象的所有者。
- group
- SecurityIdentifier
新 CommonSecurityDescriptor 对象的主组。
- systemAcl
- SystemAcl
新 CommonSecurityDescriptor 对象的系统访问控制列表(SACL)。
- discretionaryAcl
- DiscretionaryAcl
新 CommonSecurityDescriptor 对象的自由访问控制列表(DACL)。
注解
如果从中创建新 RawSecurityDescriptor 对象的基础安全描述符包含 null 其自由访问控制列表(DACL),则会向 DACL 添加一个允许每个人完全访问(AEFA)的访问控制条目(ACE)。 如果应用程序修改已向其添加 AEFA ACE 的安全描述符的 DACL,则当 DACL 持久化时,AEFA ACE 会与 DACL 一起保留。
这可能会导致应用程序无意中允许访问主体。 因此,应用程序应检查 AEFA ACE 是否存在,并在修改任何安全描述符之前将其删除。