RoleGroupCollection.Remove(RoleGroup) 方法
定义
从集合中删除指定角色组的第一个匹配项。Deletes the first occurrence of the specified role group from the collection.
public:
void Remove(System::Web::UI::WebControls::RoleGroup ^ group);
public void Remove (System.Web.UI.WebControls.RoleGroup group);
member this.Remove : System.Web.UI.WebControls.RoleGroup -> unit
Public Sub Remove (group As RoleGroup)
参数
注解
将 RoleGroup 从集合中删除指定对象的第一个实例 RoleGroupCollection 。The first instance of the specified RoleGroup object is removed from the RoleGroupCollection collection. 删除组之后的组将在索引中上移,以填充空出的位置。Groups that follow the removed group all move up in the index to fill the vacated spot. 如果指定的对象有多个实例 RoleGroup ,则只会删除第一个实例。If there is more than one instance of the specified RoleGroup object, only the first instance is removed.