Share via


Workspaces Property

The Workspaces property returns an ActiveX® Data Objects (ADO) recordset that contains all workspaces defined for this server.

Property Workspaces As _Recordset[C++]
Get method:
HRESULT get_Workspaces(_Recordset**varWorkspaces);

[Visual Basic]

Parameters

None.

Return Values

This property returns an ADO recordset that contains all workspaces objects defined for the server. All recordsets returned by PKMCDO have RecordCount equal to -1. Instead of relying on the count, the recordset consumer's programming flow is always MoveNext in a loop that checks for Recordset.EOF. For information on the format of the returned recordset, see Recordset Format.

Error Values

If an error is raised, Err.Number is set to one of the values documented on the Error Messages page.

[C++]

Parameters

Get method:

  • varWorkspaces
    [out, retval] Address of a pointer to an ADO recordset that contains all workspaces defined for the server. All recordsets returned by PKMCDO have RecordCount equal to -1. Instead of relying on the count, the recordset consumer's programming flow is always MoveNext in a loop that checks for Recordset.EOF. For information on the format of the returned recordset, see Recordset Format.
Return Values

For a list of error messages returned by SharePoint Portal Server, see Error Messages.

Remarks

This is a read-only property.