IContentListFactory::get_Count, put_Count Property [C++]

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

Definition

[C++]

Get method:

HRESULT IContentListFactory::get_Count(long*Count);

Put method:

HRESULT IContentListFactory::put_Count(longCount);

[Visual Basic]

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.

[Visual Basic] None.

Return Values

[C++]

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

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

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

[C++]ContentListFactory Object

[Visual Basic]ContentListFactory Object

Copyright © 2005 Microsoft Corporation.
All rights reserved.