Permission.RemoveAll method
Removes all UserPermission objects associated with the form.
Namespace: Microsoft.Office.Interop.InfoPath
Assembly: Microsoft.Office.Interop.InfoPath (in Microsoft.Office.Interop.InfoPath.dll)
Syntax
'Declaration
Sub RemoveAll
'Usage
Dim instance As Permission
instance.RemoveAll()
void RemoveAll()
Examples
In the following example, the RemoveAll method is used to remove all users from the form.
_XDocument3 thisDoc = (_XDocument3)thisXDocument;
thisDoc.Permission.RemoveAll();
Dim thisDoc As _XDocument3 = DirectCast(thisXDocument, _XDocument3)
thisDoc.Permission.RemoveAll()