Validate

Validates the data in the role assignment object before any changes are committed to Active Directory.

Syntax

void Validate()

Exceptions

Validate throws an ApplicationException if:

  • The role assignment already exists.

  • The role is null.

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

  • The method cannot find authorization data for the zone.

  • The start time is later than the end time.

If the Validate method fails, see the message returned by the exception for more specific information about the reason for the failure.