GetEnumerator

Returns an enumeration of role assignments.

Syntax

IEnumerator GetEnumerator()

Return value

The set of RoleAssignment objects.

Exceptions

GetEnumerator throws an ApplicationException if it cannot find the scope in the zone, cannot find the role, or cannot find authorization data for the zone.

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