An COM interface to MAPI
Derived from PyIUnknown
-
Returns a list of property values.
-
Deletes a set of properties.
-
Sets a set of properties.
-
Copies an object to another
-
Copies a set of properties to another object
-
Returns an interface object to be used to access a property.
-
Determines property IDs
-
Determines property names
-
Returns the last error code for the object.
-
Saves pending changes to the object
-
Gets a list of properties
PyIMAPIProp.CopyProps
int, [problems, ] = CopyProps(propTags, uiFlags
, progress
, resultIID
, dest
, flags
) Copies a set of properties to another object
-
propTags : PySPropTagArray
The property tags to copy
-
uiFlags : int
Flags for the progress object
-
progress : None
Reserved - must pass None
-
resultIID : PyIID
IID of the destination object
-
dest : PyIMAPIProp
The destination object
-
flags : int
flags
PyIMAPIProp.CopyTo
int, [problems, ] = CopyTo(IIDExcludeList, propTags
, uiFlags
, progress
, resultIID
, dest
, flags
) Copies an object to another
-
IIDExcludeList : [PyIID, ]
A sequence of IIDs to exclude.
-
propTags : PySPropTagArray
The property tags to copy
-
uiFlags : int
Flags for the progress object
-
progress : None
Reserved - must pass None
-
resultIID : PyIID
IID of the destination object
-
dest : PyIMAPIProp
The destination object
-
flags : int
flags
PyIMAPIProp.DeleteProps
int, [problems, ] = DeleteProps(propList) Deletes a set of properties.
-
propList : PySPropTagArray
The list of properties
PyIMAPIProp.GetIDsFromNames
PySPropTagArray = GetIDsFromNames(nameIds, flags
) Determines property IDs
-
nameIds : PyMAPINAMEIDArray
Sequence of name ids
-
flags=0 : int
PyIMAPIProp.GetLastError
MAPIERROR
= GetLastError(hr, flags
) Returns the last error code for the object.
-
hr : int
Contains the error code generated in the previous method call.
-
flags : int
Indicates for format for the output.
PyIMAPIProp.GetNamesFromIDs
HRESULT, PySPropTagArray, PyMAPINAMEIDArray = GetNamesFromIDs(propTags, propSetGuid
, flags
) Determines property names
-
propTags : PySPropTagArray
Sequence of property tags, or None
-
propSetGuid=None : PyIID
a globally unique identifier, identifying a property set, or None
-
flags=0 : int
PyIMAPIProp.GetPropList
PySPropTagArray = GetPropList(flags) Gets a list of properties
-
flags : int
flags
PyIMAPIProp.GetProps
int, [items, ] = GetProps(propList, flags
) Returns a list of property values.
-
propList : PySPropTagArray
The list of properties
-
flags=0 : int
PyIMAPIProp.OpenProperty
PyIUnknown = OpenProperty(propTag, iid
, interfaceOptions
, flags
) Returns an interface object to be used to access a property.
-
propTag : ULONG
The property tag to open
-
iid : PyIID
The IID of the resulting interface.
-
interfaceOptions : int
Data that relates to the interface identified by the lpiid parameter.
-
flags : int
flags
PyIMAPIProp.SaveChanges
SaveChanges(flags) Saves pending changes to the object
-
flags : int
flags
PyIMAPIProp.SetProps
int, [problems, ] = SetProps(propList) Sets a set of properties.
-
propList : [PySPropValue, ]
The list of properties