32 : this(isContainer, resourceType)
39 : base(securityDescriptor)
46 : this(resourceType,
CreateInternal(resourceType, isContainer, name, null, includeSections, createByName: true, exceptionFromErrorCode, exceptionContext), exceptionFromErrorCode)
51 : this(isContainer, resourceType, name, includeSections, null, null)
56 : this(resourceType,
CreateInternal(resourceType, isContainer, null,
handle, includeSections, createByName: false, exceptionFromErrorCode, exceptionContext), exceptionFromErrorCode)
61 : this(isContainer, resourceType,
handle, includeSections, null, null)
67 if (createByName && name ==
null)
71 if (!createByName &&
handle ==
null)
77 if (securityInfo != 0)
80 if (exceptionFromErrorCode !=
null)
82 ex = exceptionFromErrorCode(securityInfo, name,
handle, exceptionContext);
151 sacl = ((!_securityDescriptor.IsSystemAclPresent || _securityDescriptor.SystemAcl ==
null || _securityDescriptor.SystemAcl.Count <= 0) ?
null :
_securityDescriptor.
SystemAcl);
188 base.OwnerModified =
false;
189 base.GroupModified =
false;
190 base.AccessRulesModified =
false;
191 base.AuditRulesModified =
false;
210 Persist(name,
null, includeSections, exceptionContext);
static string AccessControl_UnexpectedError
static string AccessControl_InvalidOwner
static string Format(string resourceFormat, object p1)
static string Argument_InvalidName
static string AccessControl_InvalidHandle
static string InvalidOperation_DisconnectedPipe
static string AccessControl_InvalidGroup
static string AccessControl_NoAssociatedSecurity
override ControlFlags ControlFlags
override? SecurityIdentifier Group
DiscretionaryAcl? DiscretionaryAcl
bool IsDiscretionaryAclPresent
override? SecurityIdentifier Owner
bool EveryOneFullAccessForNullDacl
NativeObjectSecurity(bool isContainer, ResourceType resourceType, SafeHandle? handle, AccessControlSections includeSections)
readonly uint UnprotectedDiscretionaryAcl
void Persist(string name, SafeHandle handle, AccessControlSections includeSections, object exceptionContext)
NativeObjectSecurity(bool isContainer, ResourceType resourceType, SafeHandle? handle, AccessControlSections includeSections, ExceptionFromErrorCode? exceptionFromErrorCode, object? exceptionContext)
readonly uint ProtectedDiscretionaryAcl
NativeObjectSecurity(bool isContainer, ResourceType resourceType, ExceptionFromErrorCode? exceptionFromErrorCode, object? exceptionContext)
NativeObjectSecurity(bool isContainer, ResourceType resourceType, string? name, AccessControlSections includeSections)
readonly ExceptionFromErrorCode _exceptionFromErrorCode
void Persist(string name, AccessControlSections includeSections, object? exceptionContext)
static CommonSecurityDescriptor CreateInternal(ResourceType resourceType, bool isContainer, string name, SafeHandle handle, AccessControlSections includeSections, bool createByName, ExceptionFromErrorCode exceptionFromErrorCode, object exceptionContext)
void Persist(SafeHandle handle, AccessControlSections includeSections, object? exceptionContext)
readonly ResourceType _resourceType
readonly object _exceptionContext
NativeObjectSecurity(ResourceType resourceType, CommonSecurityDescriptor securityDescriptor, ExceptionFromErrorCode exceptionFromErrorCode)
override void Persist(string name, AccessControlSections includeSections)
delegate? Exception ExceptionFromErrorCode(int errorCode, string? name, SafeHandle? handle, object? context)
NativeObjectSecurity(bool isContainer, ResourceType resourceType)
override void Persist(SafeHandle handle, AccessControlSections includeSections)
readonly uint ProtectedSystemAcl
NativeObjectSecurity(bool isContainer, ResourceType resourceType, string? name, AccessControlSections includeSections, ExceptionFromErrorCode? exceptionFromErrorCode, object? exceptionContext)
readonly uint UnprotectedSystemAcl
readonly CommonSecurityDescriptor _securityDescriptor
static int GetSecurityInfo(ResourceType resourceType, string name, SafeHandle handle, AccessControlSections accessControlSections, out RawSecurityDescriptor resultSd)
static int SetSecurityInfo(ResourceType type, string name, SafeHandle handle, SecurityInfos securityInformation, SecurityIdentifier owner, SecurityIdentifier group, GenericAcl sacl, GenericAcl dacl)