System.Web.UI.WebControls.RoleGroupCollection: Method Members

The methods of System.Web.UI.WebControls.RoleGroupCollection are listed below. For a list of all members, see the RoleGroupCollection Members list.

See Also: Inherited members from System.Collections.CollectionBase

Public Methods

Add(RoleGroup)

Adds a role group to the end of the collection.

Contains(RoleGroup) : bool

Indicates whether the collection contains the specified role group.

CopyTo(RoleGroup[], int)

Copies all the items from the System.Web.UI.WebControls.RoleGroupCollection collection to a compatible one-dimensional array of System.Web.UI.WebControls.RoleGroup objects, starting at the specified index in the target array.

GetMatchingRoleGroup(System.Security.Principal.IPrincipal) : RoleGroup

Returns the first role group that contains the specified user account.

IndexOf(RoleGroup) : int

Searches the collection and returns the zero-based index of the first occurrence of the specified System.Web.UI.WebControls.RoleGroup.

Insert(int, RoleGroup)

Adds a System.Web.UI.WebControls.RoleGroup to the collection at the specified index.

Remove(RoleGroup)

Deletes the first occurrence of the specified role group from the collection.