ActiveDirectorySecurity.ResetAccessRule(ActiveDirectoryAccessRule) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Searches an object's DACL for all access rules that contain a security identifier (SID) that matches the SID specified in the rule
object, and replaces all of those access rules with the access rules that are contained in the rule
object.
public:
void ResetAccessRule(System::DirectoryServices::ActiveDirectoryAccessRule ^ rule);
public void ResetAccessRule (System.DirectoryServices.ActiveDirectoryAccessRule rule);
override this.ResetAccessRule : System.DirectoryServices.ActiveDirectoryAccessRule -> unit
Public Sub ResetAccessRule (rule As ActiveDirectoryAccessRule)
Parameters
The ActiveDirectoryAccessRule object to which this operation applies.
Remarks
When ResetAccessRule is used to replace all access rules with a particular SID in an object's DACL, both Allow- and Deny- type rules are replaced. To replace only Allow rules without affecting Deny rules, or to replace Deny rules without affecting Allow rules, use SetAccessRule instead.
Applies to
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈