Binding to Items Stored in SharePoint Portal Server

The programmatic flow for binding to items stored in Microsoft® SharePoint™ Portal Server 2001 is identical to the programmatic flow for binding to an item in the Microsoft Exchange Information Store. The differences are only in the pattern of URLs (URLs in SharePoint Portal Server reflect the SharePoint Portal Server workspace and folder structures) and in the range of objects offered by SharePoint Portal Server that implement DataSource binding.

Important

The default mode for opening items in the SharePoint Portal Server store is read-only. If you want to have write access, you must open the item in read/write mode. This can be accomplished by opening with the adModeReadWrite flag as explained in the Exchange Information Store SDK. This is demonstrated in the Document Management Object Model Sample.

For a complete list of the ConnectModeEnum enumeration, see ADO API Reference.

Example
Dim oWS as New PKMCDO.KnowledgeWorkspace
Dim oFolder as New PKMCDO.KnowledgeFolder
Dim oDocument as New PKMCDO.KnowledgeDocument

oWS.DataSource.Open "http://myserver/myworkspace/"
oFolder.DataSource.Open "http://myserver/myworkspace/myfolder"
oDocument.DataSource.Open "http://myserver/myworkspace/myfolder/mydoc"
See Also

Microsoft Exchange SDK