Code Samples

This section includes the following code samples:

Code Sample Description
Category-Specific Web Part Sample Creates a Web Part for the Category dashboard that only displays information in certain categories.
Document Management Object Model Sample Performs the following operations:
  • Creates a workspace.
  • Creates a dictionary.
  • Creates property definitions.
  • Creates a content class.
  • Creates a folder.
  • Sets roles.
  • Creates a category folder.
  • Imports a document.
  • Checks in and publishes the document.
Protocol Handler Sample Uses Protocol Handler interfaces to create a custom Protocol Handler for a local file share.
Search Web Part Sample Constructs a search Web Part that performs a dictionary lookup by using the Document Management Objects of Microsoft® SharePoint™ Portal Server 2001 and executes a search through the dashboard site.

Warning

These code samples are not intended for use in a production environment. In addition, these code samples have only minimal error checking.