Commit

Commits any changes or updates to the role assignment and saves the changes to Active Directory.

Syntax

void Commit()

Discussion

The method does not validate the data before saving it in Active Directory. Call the Validate method before calling the Commit method to make sure the data is valid.

Exceptions

Commit throws an ApplicationException if:

  • The role assignment already exists.

  • The method cannot find the role assignment or the role.

  • The method cannot find 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.