 | TaskSecurityRemoveAuditRule Method |
Searches for an audit control rule with the same user as the specified rule, and with compatible inheritance and propagation flags; if a compatible rule is found, the rights contained in the specified rule are removed from it.
Namespace:
Microsoft.Win32.TaskScheduler
Assembly:
Microsoft.Win32.TaskScheduler (in Microsoft.Win32.TaskScheduler.dll) Version: 2.10.1
Syntaxpublic bool RemoveAuditRule(
TaskAuditRule rule
)
Public Function RemoveAuditRule (
rule As TaskAuditRule
) As Boolean
public:
bool RemoveAuditRule(
TaskAuditRule^ rule
)
Request Example
View SourceParameters
- rule
- Type: Microsoft.Win32.TaskSchedulerTaskAuditRule
A TaskAuditRule that specifies the user to search for, and a set of inheritance and propagation flags that a matching rule, if found, must be compatible with. Specifies the rights to remove from the compatible rule, if found.
Return Value
Type:
Booleantrue if a compatible rule is found; otherwise
false.
See Also