IContentListFactory::get_Count, put_Count

Ee796253.c++_off(en-US,CS.10).gifEe796253.vb_on(en-US,CS.10).gif

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

Definition

Get method:

HRESULT IContentListFactory::get_Count(long*Count);

Put method:

HRESULT IContentListFactory::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

These methods return 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

The Count property cannot be changed once ContentList objects have been created by the ContentListFactory object. Also, the Count property cannot be set to a smaller number than its current setting.

This property is functionally identical to the one of the same name to be found in the ContentList object.

See Also

ContentListFactory Object


All rights reserved.