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 );
Parameters
sValue
[in]
The property value to be set.
Return Value
S_OK
The method completed successfully.
Error
This method failed to complete successfully.
Remarks
You cannot set the value of a read-only property or a collection.