Causes one or more properties to be read from the property bag.
HRESULT retVal = object.Read(cProperties, pPropBag, pErrLog, pvarValue, phrError);
Type: unsigned long
The number of properties to read. This argument specifies the number of elements in the arrays at pPropBag, pvarValue, and phrError.
The address of an array of PROPBAG2 structures that specify the properties that are requested. The vt member and the pstrName member of these structures must be filled in before this method can be called. The dwHint member of these structures is optional. There must be at least cProperties elements in this array. This argument cannot be NULL.
The address of an IErrorlog interface in which the property bag stores any errors that occur during the reads. This argument can be NULL; in which case, the caller receives no logging errors.
The address of an array of VARIANT structures that receive the property values. The caller does not have to initialize these structures before calling IPropertyBag2::Read. The IPropertyBag2::Read method fills the type field and the value field in these structures before it returns. There must be at least cProperties elements in this array. The calling application is responsible for freeing any allocations that are contained in these structures. This argument cannot be NULL.
The address of an array of HRESULT values that receives the result of each property read. There must be at least cProperties elements in this array. This argument cannot be NULL.