DocumentWorkspace Class

The DocumentWorkspace class represents the services and components that make up an optional backward-compatible document library (Web Storage System-based) in the topology of a server or server farm deployment of Microsoft Office SharePoint Portal Server 2003.

Note SharePoint Portal Server offers a number of document management features. A DocumentWorkspace object is compatible with the SharePoint Portal Server 2001 document library and is based on a document store. For information about the Microsoft Windows SharePoint Services-based document library, see SPDocumentLibrary class.

System.Object

Inherits Microsoft.SharePoint.Portal.Topology.TopologyObjectBase

   **Microsoft.SharePoint.Portal.Topology.DocumentWorkspace**

Public Constructors

The following table shows the constructors of the DocumentWorkspace class and a brief description of each.

Name Description
DocumentWorkspace Initializes a new instance of the DocumentWorkspace class.

Public Methods

The following table shows the public methods of the DocumentWorkspace class and a brief description of each.

Name Description
Commit(Boolean) Persists changes to the properties of the Document workspace site.

Public Properties

The following table shows the properties of the DocumentWorkspace class, the data type of each property, and a brief description of each.

Name Data type Description
DocumentService Microsoft.SharePoint.Portal.Topology.DocumentService Gets or sets the DocumentService object that manages the documents in the Document workspace site.
Name String Gets or sets the name of the DocumentWorkspace object.
PortalUrlId System.Guid Gets or sets the ID for the URL of the portal site that contains the DocumentWorkspace object.
Url String Gets or sets the URL of the DocumentWorkspace object.

Thread Safety

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

Remarks

To use the properties and methods of the objects in the Topology namespace you must be a member of the local STS_WPG and SPS_WPG security groups, and a member of the db_owner database role for the configuration database.

In addition, for certain methods, such as those that create a portal site, you must be a member of the local Administrators group, and have membership in the Database Creators and Security Administrators server roles in the SQL Server instance that hosts the configuration database.

Requirements

Namespace: Microsoft.SharePoint.Portal.Topology

Platforms: Microsoft Windows Server 2003

Assembly: Microsoft.SharePoint.Portal (in Microsoft.SharePoint.Portal.dll)

Security: Code Access Security