ObjectAce(AceFlags, AceQualifier, Int32, SecurityIdentifier, ObjectAceFlags, Guid, Guid, Boolean, Byte[]) 构造函数
定义
public:
ObjectAce(System::Security::AccessControl::AceFlags aceFlags, System::Security::AccessControl::AceQualifier qualifier, int accessMask, System::Security::Principal::SecurityIdentifier ^ sid, System::Security::AccessControl::ObjectAceFlags flags, Guid type, Guid inheritedType, bool isCallback, cli::array <System::Byte> ^ opaque);
public ObjectAce (System.Security.AccessControl.AceFlags aceFlags, System.Security.AccessControl.AceQualifier qualifier, int accessMask, System.Security.Principal.SecurityIdentifier sid, System.Security.AccessControl.ObjectAceFlags flags, Guid type, Guid inheritedType, bool isCallback, byte[] opaque);
public ObjectAce (System.Security.AccessControl.AceFlags aceFlags, System.Security.AccessControl.AceQualifier qualifier, int accessMask, System.Security.Principal.SecurityIdentifier sid, System.Security.AccessControl.ObjectAceFlags flags, Guid type, Guid inheritedType, bool isCallback, byte[]? opaque);
new System.Security.AccessControl.ObjectAce : System.Security.AccessControl.AceFlags * System.Security.AccessControl.AceQualifier * int * System.Security.Principal.SecurityIdentifier * System.Security.AccessControl.ObjectAceFlags * Guid * Guid * bool * byte[] -> System.Security.AccessControl.ObjectAce
Public Sub New (aceFlags As AceFlags, qualifier As AceQualifier, accessMask As Integer, sid As SecurityIdentifier, flags As ObjectAceFlags, type As Guid, inheritedType As Guid, isCallback As Boolean, opaque As Byte())
参数
- aceFlags
- AceFlags
新的访问控制项 (ACE) 的继承、继承传播和审核条件。The inheritance, inheritance propagation, and auditing conditions for the new Access Control Entry (ACE).
- qualifier
- AceQualifier
新的 ACE 的使用情况。The use of the new ACE.
- accessMask
- Int32
ACE 的访问掩码。The access mask for the ACE.
与新的 ACE 关联的 SecurityIdentifier。The SecurityIdentifier associated with the new ACE.
- flags
- ObjectAceFlags
type 和 inheritedType 参数是否包含有效的对象 GUID。Whether the type and inheritedType parameters contain valid object GUIDs.
- type
- Guid
标识将应用新的 ACE 的对象类型的 GUID。A GUID that identifies the object type to which the new ACE applies.
- inheritedType
- Guid
标识可以继承新的 ACE 的对象类型的 GUID。A GUID that identifies the object type that can inherit the new ACE.
- isCallback
- Boolean
如果新的 ACE 是一个回调类型的 ACE,则为 true。true if the new ACE is a callback type ACE.
- opaque
- Byte[]
与新的 ACE 关联的不透明数据。Opaque data associated with the new ACE. 只有回调 ACE 类型才允许此数据。This is allowed only for callback ACE types. 此数组的长度必须小于或等于 MaxOpaqueLength(Boolean) 方法的返回值。The length of this array must not be greater than the return value of the MaxOpaqueLength(Boolean) method.
例外
限定符参数包含一个无效值或者不透明参数值的长度大于 MaxOpaqueLength(Boolean) 方法的返回值。The qualifier parameter contains an invalid value or the length of the value of the opaque parameter is greater than the return value of the MaxOpaqueLength(Boolean) method.