Click to Rate and Give Feedback
MSDN
MSDN Library
User Interface
Windows Shell
Shell Reference
Shell Interfaces
IPropertyStore
IPropertyStore Interface

Exposes methods for enumerating, getting, and setting property values.

IPropertyStore Members

Commit Saves a property change.
GetAt Gets a property key from an item's array of properties.
GetCount Gets the number of properties attached to the file.
GetValue Gets data for a specific property.
SetValue Sets a new property value, or replaces or removes an existing value.

Remarks

These methods can be called at any time after initialization of the property handler but before property changes are written to the file through IPropertyStore::Commit. At any other time, these methods return E_FAIL.

When to Implement

An implementation of this interface is provided by CLSID_InMemoryPropertyStore, as IPropertyStoreCache. Users should never need to implement it themselves.

CLSID_InMemoryPropertyStore implements IPropertyStoreCache instead of IPropertyStore so that it can store additional state information (PSC_STATE) about each of the properties in the cache. This information can be useful for property handler implementers. It can also be useful in other scenarios where a cache of property values is needed.

Interface Information

Inherits fromIUnknown
Header and IDL filespropsys.h, propsys.idl
Minimum operating systems Windows Vista
Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks | Privacy Statement | Site Feedback
Page view tracker