Contains a sequential list of role groups that the LoginView control uses to determine which control template to display to users based on their role. This class cannot be inherited.
Assembly: System.Web (in System.Web.dll)
Gets the role group at the specified index.
Adds a role group to the end of the collection.
Indicates whether the collection contains the specified role group.
Copies all the items from the RoleGroup objects, starting at the specified index in the target array.collection to a compatible one-dimensional array of
Determines whether the specified object is equal to the current object.(Inherited from Object.)
Serves as the default hash function. (Inherited from Object.)
Returns the first role group that contains the specified user account.
Searches the collection and returns the zero-based index of the first occurrence of the specified RoleGroup.
Adds a RoleGroup to the collection at the specified index.
Deletes the first occurrence of the specified role group from the collection.
Returns a string that represents the current object.(Inherited from Object.)
Gets or sets the element at the specified index.(Inherited from CollectionBase.)
Overloaded. Enables parallelization of a query.(Defined by ParallelEnumerable.)
The LoginView template. Each role group defines the content and controls to display to a particular group of users on your Web site. It is possible to assign several role groups to the same template.class manages the list of role groups associated with a particular
To find the role group in the collection that a particular user belongs to, you can use the GetMatchingRoleGroup method to search the collection by user name.
The order of the roles in thecollection is important because matching is done sequentially based on the first role found.
You must configure role management to use the Understanding Role Management.class to manage a list of role groups. For more information, see
Available since 2.0
Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.