DefaultDocument Property

The DefaultDocument property specifies the default item in a folder.

Property DefaultDocument As String [C++]
Get method:
HRESULT get_DefaultDocument(BSTR*pDefaultDocument);
Put method:
HRESULT put_DefaultDocument(BSTRvarDefaultDocument);

[Visual Basic]

Parameters

None.

Return Values

This property returns a String that contains the Uniform Resource Identifier (URI) of the item.

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:

  • pDefaultDocument
    [out, retval] Pointer to a BSTR that contains the Uniform Resource Identifier (URI) of the item.

Put method:

  • varDefaultDocument
    [in] BSTR that contains the URI of the item.
Return Values

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

Remarks

The DefaultDocument property applies to the default item in a folder and cannot point to a collection or to a resource outside of the current collection.