Share via


GetContentLength Property

The GetContentLength property contains the length of the document.

Property GetContentLength As Long [C++]
Get method:
HRESULT get_GetContentLength(long* varGetContentLength);

[Visual Basic]

Parameters

None.

Return Values

This property returns a Long that contains the document length in bytes.

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:

  • varGetContentLength
    [out, retval] Pointer to a long that contains the document length in bytes.
Return Values

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

Remarks

This is a read-only property. The GetContentLength property corresponds to the searchable property "DAV:getcontentlength".