SharedWorkspace.RemoveDocument MethodÂ
Removes the active document from the shared workspace.
Namespace: Microsoft.Office.Core
Assembly: office (in office.dll)
Usage
Dim sharedWorkspace1 As SharedWorkspace
sharedWorkspace1.RemoveDocument()
Syntax
Sub RemoveDocument()
void RemoveDocument();
public: Void RemoveDocument();
public void RemoveDocument();
function RemoveDocument();
Remarks
If the user does not have permission to remove the shared workspace document from the server, then the server copy remains intact, but the local copy of the document is disconnected from the shared workspace. In the case where the document has been opened directly from the workspace, and then removed from the workspace using RemoveDocument, the document must be saved to another location before closing; otherwise, it will remain in the workspace.
Use the Disconnect method to detach the local copy of the document from the shared workspace without removing the shared copy.
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
SharedWorkspace Interface
Microsoft.Office.Core Namespace