Compartilhar via


Permission.RemoveAll Método

Definição

Remove todos os UserPermission objetos associados ao formulário.

public:
 void RemoveAll();
public void RemoveAll ();
abstract member RemoveAll : unit -> unit
Public Sub RemoveAll ()

Exemplos

No exemplo a seguir, o método RemoveAll é usado para remover todos os usuários do formulário.

_XDocument3 thisDoc = (_XDocument3)thisXDocument;
thisDoc.Permission.RemoveAll();
Dim thisDoc As _XDocument3 = DirectCast(thisXDocument, _XDocument3)
thisDoc.Permission.RemoveAll()

Comentários

Como o objeto Permission e seus membros são novos no Microsoft InfoPath, você deve lançar o objeto retornado por essa variávelXDocument para o _XDocument3 tipo para acessar esse objeto e seus membros. Para obter mais informações, consulte Como usar membros do modelo de objeto que não são compatíveis com o InfoPath 2003.

This member can be accessed only by forms opened from a form template that has been configured to run with full trust using the Security and Trust category of the Form Options dialog box. This member requires full trust for the immediate caller and cannot be used by partially trusted code. For more information, see "Using Libraries from Partially Trusted Code" on MSDN.

Aplica-se a