propput

[propput [,optional-property-attributes]return-type func-name( parameters);

Example

interface InMyFace : IDispatch                         
    {                
      [propget, helpstring("A meaningful comment.")]
      HRESULT Method1([out, retval] int* ReturnVal); 
      [propput, helpstring("Another meaningful comment.")]
      HRESULT Method1([in] int Value);
    }                  
 

Remarks

The propput attribute specifies a property-setting function. The property must have the same name as the function.

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.

Flags

INVOKE_PROPERTYPUT

See Also

TYPEFLAGS, ODL File Syntax, ODL File Example, Generating a Type Library With MIDL, Differences Between MIDL and MKTYPLIB