This method sets the value of a persistent interface property. The type of the input parameter is converted to the storage data type of the property. If the type of the input parameter cannot be successfully converted to the storage data type, this method will return an error.
HRESULT put_Value(VARIANT sValue);
sValue
[in]
The property value to be set.
S_OK
The method completed successfully.
This method failed to complete successfully.
You cannot set the value of a read-only property or a collection.