Share via


IContentListFactory::get_Count, put_Count Property

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

HRESULT IContentListFactory::get_Count(
  long* Count
);

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

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

Other Resources

ContentListFactory Object