Condividi tramite


IItemPropertyBag::CountProperties method

Gets a count of the number of properties in the property bag. The IItemPropertyBag interface is supported only on Windows XP and Windows Server 2003, and should no longer be used.

Syntax

HRESULT CountProperties(
  [out] ULONG *pcProperties
);

Parameters

  • pcProperties [out]
    Pointer to a ULONG variable that receives the number of properties in the property bag.

Return value

If the method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Remarks

The IItemPropertyBag interface is supported only on Windows XP and Windows Server 2003, and should no longer be used.

To preview attachments with a third-party protocol handler on computers running Windows XP or Windows Server 2003, it may be necessary to use the IItemPropertyBag interface and the following APIs: the ISearchProtocolUI, IItemPreviewerExt and ISearchItem interfaces, the LINKINFO and ITEMPROP structures, and the LINKTYPE enumeration.

Requirements

Minimum supported client

Windows XP with SP2 [desktop apps only]

Minimum supported server

Windows Server 2003 [desktop apps only]

Redistributable

Windows Desktop Search (WDS) 3.0

See also

IItemPropertyBag