System.Web.UI.WebControls.RoleGroupCollection.Remove Method

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

Syntax

public void Remove (RoleGroup group)

Parameters

group
The System.Web.UI.WebControls.RoleGroup to remove from the collection.

Remarks

The first instance of the specified System.Web.UI.WebControls.RoleGroup object is removed from the System.Web.UI.WebControls.RoleGroupCollection collection. Groups that follow the removed group all move up in the index to fill the vacated spot. If there is more than one instance of the specified System.Web.UI.WebControls.RoleGroup object, only the first instance is removed.

Requirements

Namespace: System.Web.UI.WebControls
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0