SavingEventArgs Constructor (Boolean, Boolean)
Initializes a new instance of the SavingEventArgs class for the specified Group Policy object (GPO) section with the Cancel property set according to a specified value.
Namespace: Microsoft.GroupPolicy
Assembly: Microsoft.GroupPolicy.Management (in Microsoft.GroupPolicy.Management.dll)
Syntax
public SavingEventArgs(
bool isComputerConfiguration,
bool cancel
)
public:
SavingEventArgs(
bool isComputerConfiguration,
bool cancel
)
new :
isComputerConfiguration:bool *
cancel:bool -> SavingEventArgs
Public Sub New (
isComputerConfiguration As Boolean,
cancel As Boolean
)
Parameters
isComputerConfiguration
Type: System.Booleantrue indicates that the computer section of the GPO is being saved; false indicates that the user section is being saved.
cancel
Type: System.Booleantrue to initialize the Cancel property to true; false to initialize it to false.
Remarks
The IsComputerConfiguration property is initialized according to the value of isComputerConfiguration. The Cancel property is initialized according to the value of cancel.
See Also
SavingEventArgs Overload
SavingEventArgs Class
Microsoft.GroupPolicy Namespace
Return to top