Share via


Permission.RemoveAll Method 

Removes all UserPermission objects from the Permission collection of the active document and disables restrictions on the active document.

Namespace: Microsoft.Office.Core
Assembly: office (in office.dll)

Usage

Dim permission1 As Permission
permission1.RemoveAll()

Syntax

Sub RemoveAll()
void RemoveAll();
public: Void RemoveAll();
public void RemoveAll();
function RemoveAll();

Remarks

After calling the RemoveAll method, the Enabled property of the Permission object returns False and the Count property returns 0 (zero).

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

Windows XP Home Edition, Windows XP Professional, Windows Server 2003, and Windows 2000

Target Platforms

See Also

Reference

Permission Interface
Microsoft.Office.Core Namespace

Other Resources

Permission Members