propput attribute
The [propput] attribute specifies a property-setting function. The property must have the same name as the function*.*
[propput [,optional-property-attributes]] return-type function-name( parameters);
-
optional-property-attributes
-
Zero or more property attributes.
-
return-type
-
The type of the data returned by the remote procedure.
-
function-name
-
The name of the remote procedure.
-
parameters
-
Zero or more parameters to the remote procedure.
A function that has the [propput] attribute must also have, as its last parameter, a parameter that has the [in] attribute.
At most, one of [propget], [propput] and [propputref] can be specified for a function.
If the [lcid] attribute is used in the parameter list of a function that contains a parameter with the [propput] attribute, the [lcid] parameter must be second to the last.
INVOKE_PROPERTYPUT
interface InMyFace : IDispatch
{
[propget,
helpstring("A meaningful comment.")] HRESULT Method1(
[out, retval] int* ReturnVal);
[propput,
helpstring("Another meaningful comment.")] HRESULT Method1(
[in] int Value);
}