PrincipalCollection.Clear Método

Definição

Remove todos os objetos Principal da coleção.Removes all Principal objects from the collection.

public:
 virtual void Clear();
public void Clear ();
[System.Security.SecurityCritical]
public void Clear ();
abstract member Clear : unit -> unit
override this.Clear : unit -> unit
[<System.Security.SecurityCritical>]
abstract member Clear : unit -> unit
override this.Clear : unit -> unit
Public Sub Clear ()

Implementações

Atributos

Comentários

Essa função pode gerar as seguintes exceções:This function can throw the following exceptions:

ExceçãoException DescriçãoDescription
InvalidOperationException Se esse método for chamado em Members PrincipalCollection, a Members propriedade não poderá ser desmarcada porque um ou mais membros do grupo têm esse grupo como seu grupo primário.If this method is called on the Members PrincipalCollection, the Members property cannot be cleared because one or more of the group's members have this group as their primary group.

Aplica-se a