Commits any changes or updates to the Right object and saves the changes to Active Directory.
The method does not validate the data before saving it in Active Directory.
Commit throws an ApplicationException if:
- the command right name or command pattern is null, empty, or invalid
- the command name is null or empty
- the command path is null or empty
- the method cannot find the command right or authorization data for the zone
If the Commit method fails, see the message returned by the exception for more specific information about the reason for the failure.