TransactedRegistrySecurity.AddAuditRule Method

Searches for an audit rule with which the new rule can be merged. If none is found, adds the new rule. This method is introduced in Windows PowerShell 2.0.


Namespace: Microsoft.PowerShell.Commands.Internal
Assembly: System.Management.Automation (in System.Management.Automation.dll)

'Usage
Dim instance As TransactedRegistrySecurity
Dim rule As TransactedRegistryAuditRule

instance.AddAuditRule(rule)

public void AddAuditRule (
	TransactedRegistryAuditRule rule
)
public void AddAuditRule (
	TransactedRegistryAuditRule rule
)
public function AddAuditRule (
	rule : TransactedRegistryAuditRule
)

Parameters

rule

The audit rule to add.

This topic is included in this SDK for completeness only.


Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

 

Target Platforms


Show: