Share via


IUrlAccessor::GetSize Method

Gets the size of the content designated by the URL.

Syntax

HRESULT GetSize(      
    ULONGLONG *pllSize
);

Parameters

  • pllSize
    [out]  Receives a pointer to the number of bytes of data contained in the URL.

Return Value

Returns S_OK if successful, or an error value otherwise.

Remarks

The value calculated in this method is a factor in determining limitations on IFilter output size. This method should return 0 for containers if the protocol implementation is for a hierarchical content source.

Implement this method for non-files by returning the size of the document to be indexed. For example, to index a database where each row is a document, return the best estimate of the size of the row.