IPropertyContainer::PutPropertyString

virtual boolIPropertyContainer::PutPropertyString(const PropertyIdpropId, const BSTR&propVal)

Set a property value as string using the property ID.

Defined in: PropIface.h

Return Value

Returns true if the property value for the given property ID is found and the string is successfully converted and assigned, otherwise it returns false.

Parameters

propId

Property ID to store.

propVal

String representation of value to store in property.

Comments

This function is a convenience function. It saves the caller from having to perform their own string to VARIANT conversions.