propget

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

Example

 interface InMyFace : IDispatch                        

                   

      [propget, helpstring("A meaningful comment.")]

      HRESULT Method1([out, retval] int* retval);

      [propput, helpstring("Another meaningful comment.")]

      HRESULT Method1([in] int Value);

       

     [propget, helpstring("A meaningful comment."), id(1)]  

      HRESULT Method2([out, retval] InYourFace** retval);

      [propputref, helpstring("Another meaningful comment."), id(1)] 

      HRESULT Method2([in] InYourFace* Point);

    }                 

 

Remarks

The propget attribute specifies a property accessor function. The property must have the same name as the function.

A function that has the propget attribute must also have, as its last parameter, a pointer type with the out1YECZCP and retvalE_IXBP attributes.

At most, one of propget, propput1XUH2T7, and propputrefIGTQ7. can be specified for a function.

Flags

INVOKE_PROPERTYGET

See Also

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