IContentList::get_Count, put_Count Property
The Count property is a read/write number that gets or sets the number of items in a ContentList object.
HRESULT IContentList::get_Count(
long* Count
);
HRESULT IContentList::put_Count(
long Count
);
Property Count() As Long
Parameters
Count
[C++][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 Value
[C++]
These methods return an HRESULT indicating whether they completed successfully. See the Error Values section for more details.
[Visual Basic]
None.
Error Values
[C++]
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.
[Visual Basic]
This property sets the Number property of the global Err object to S_OK (&H00000000) to indicate success and to standard COM 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. In particular, the Description property may contain 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.