IContentList::get_Count, put_Count

Ee823882.c++_off(en-US,CS.10).gifEe823882.vb_on(en-US,CS.10).gif

The Count property is a read/write number that gets or sets the number of items in a ContentList object.

Definition

Get method:

HRESULT IContentList::get_Count(long*Count);

Put method:

HRESULT IContentList::put_Count(longCount);

Parameters

Count

[in] When putting the property, a long that contains the item count.
[out,retval] When getting the property, a pointer to a long used to return the item count.

Return Values

These methods return an HRESULT indicating whether or not they completed successfully. See the Error Values section for more details.

Error Values

This method returns S_OK (0x00000000) to indicate success and standard COM HRESULT error values to indicate failure. For more information about standard COM errors, see Standard COM Errors. Additional information may be available using the global Err object, which can be accessed using the API function GetErrorInfo. In particular, the GetDescription method of the IErrorInfo interface may return a text description of the error.

Remarks

Normally, the Count property is already fixed when a ContentList object is created by a ContentListFactory object. The property may only be set for ContentList objects that are created by a ContentListFactory object that has not yet had any content items stored in it. Also, the Count property cannot be set to a number smaller than the current setting.

This property is functionally identical to the one of the same name in the ContentListFactory object.

See Also

ContentList Object


All rights reserved.