. NET, the small details about folder permissions settings

Source: Internet
Author: User

INHERITANCEFLAGS Specifies which accept permission inheritance

  • Inheritanceflags.containerinherit subordinate folders to inherit permissions.
  • Inheritanceflags.none subordinate folders, files do not inherit permissions.
  • Inheritanceflags.objectinherit subordinate files to inherit permissions.

The above mentioned "folder", "File", the more accurate word should be "container", "leaf object", because it is not only used for folders, files, but also may be used elsewhere, such as registry permissions.

PropagationFlags How to propagate permissions

  • Propagationflags.inheritonly does not set path, but propagates to subordinates.
  • Propagationflags.none is not set, that is, both the path is set and propagated to the subordinate.
  • Propagationflags.nopropagateinherit just sets the path and does not propagate to subordinates.

PropagationFlags only makes sense when the inheritanceflags is not none. That is, inheritanceflags specifies which class of objects can accept permission inheritance (propagation), and PropagationFlags indicates how these permissions are propagated.

. NET, the small details about folder permissions settings

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.