public static DirectorySecurity GetAccessControl(SafeFileHandle handle) { return(File.GetAccessControlHandleCore <DirectorySecurity>(false, true, handle, AccessControlSections.Access | AccessControlSections.Group | AccessControlSections.Owner, SecurityInformation.None)); }
public static DirectorySecurity GetAccessControl(SafeFileHandle handle, AccessControlSections includeSections) { return(File.GetAccessControlHandleCore <DirectorySecurity>(false, true, handle, includeSections, SecurityInformation.None)); }