Structured storage object that contains a set of properties.
Supports iteration to list properties.
-
Reads specified properties from the current property set.
-
Creates or modifies properties in the property set
-
Deletes properties from the property set
-
Retrieves any existing string names for the specified property identifiers.
-
Assigns string names to a specified array of property IDs in the current property set.
-
Removes property names from specified properties.
-
Persists the property set to its base storage
-
Discards any changes that have been made
-
Creates an enumerator for properties in the property set
-
Sets the creation, last access, and modification time
-
Sets the GUID for the property set
-
Returns various infomation about the property set
PyIPropertyStorage.Commit
Commit(CommitFlags) Persists the property set to its base storage
-
CommitFlags : int
Combination of storagecon.STGC_* flags
PyIPropertyStorage.DeleteMultiple
DeleteMultiple(props) Deletes properties from the property set
-
props : (PROPSPEC, ...)
Sequence containing names or IDs of properties to be deleted
PyIPropertyStorage.DeletePropertyNames
DeletePropertyNames(props) Removes property names from specified properties.
-
props : (int, ...)
Sequence of ints containing property IDs.
PyIPropertyStorage.Enum
PyIEnumSTATPROPSTG = Enum() Creates an enumerator for properties in the property set
PyIPropertyStorage.ReadMultiple
(object, ...) = ReadMultiple(props) Reads specified properties from the current property set.
-
props : (PROPSPEC, ...)
Sequence of property IDs or names.
Returned values are automatically converted to an appropriate python type
PyIPropertyStorage.ReadPropertyNames
(str,...) = ReadPropertyNames(props) Retrieves any existing string names for the specified property identifiers.
-
props : (int, ...)
Sequence of ints containing property IDs.
PyIPropertyStorage.Revert
Revert() Discards any changes that have been made
PyIPropertyStorage.SetClass
SetClass(clsid) Sets the GUID for the property set
-
clsid : PyIID
Description for clsid
PyIPropertyStorage.SetTimes
SetTimes(ctime, atime, mtime) Sets the creation, last access, and modification time
-
ctime : PyTime
Creation time, or None for no change
-
atime : PyTime
Last access time, or None for no change
-
mtime : PyTime
Modification time, or None for no change
Some property sets do not support these times.
PyIPropertyStorage.Stat
tuple = Stat() Returns various infomation about the property set
Returns a tuple representing a STATPROPSETSTG struct.
PyIPropertyStorage.WriteMultiple
WriteMultiple(props, values, propidNameFirst) Creates or modifies properties in the property set
-
props : (PROPSPEC, ...)
Sequence containing names or integer ids of properties to write
-
values : (PROPVARIANT
, ...)
The values for the properties\.
-
propidNameFirst=2 : int
Minimum property id to be assigned to new properties specified by name
PyIPropertyStorage.WritePropertyNames
WritePropertyNames(props, names) Assigns string names to a specified array of property IDs in the current property set.
-
props : (int, ...)
Sequence containing the property IDs.
-
names : (string, ...)
Equal length sequence of property names.