IPhotoAcquireItem::GetProperty method (photoacquire.h)

The GetProperty method retrieves the value of a property of an item.

Syntax

HRESULT GetProperty(
  [in]  REFPROPERTYKEY key,
  [out] PROPVARIANT    *pv
);

Parameters

[in] key

Specifies a key for the property.

[out] pv

Pointer to a property variant containing the property value.

Return value

The method returns an HRESULT. Possible values include, but are not limited to, those in the following table.

Return code Description
S_OK
The method succeeded.

Remarks

For an item that is a shell object, this method will defer to the IPropertyStore object provided by the item if the property hasn't been set or updated using SetProperty.

Requirements

Requirement Value
Target Platform Windows
Header photoacquire.h
Library PhotoAcquireUID.lib

See also

IPhotoAcquireItem Interface

SetProperty