NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

Compiler Error C3128

'function_name' : 'attribute_parameter' method name does not match previously specified method name, 'function_name'

If you define a data member in a class that derives from an interface with the same data member, the accessor method names must be the same. For example:

#pragma keyword("interface", on)
#pragma warning(disable:4199)

interface IX9 {
   [ property(get="GetSize") ]
   int Size;
};

class CX9 : public IX9 {
public:
   [ property(get="getSize") ]     // Should be GetSize
   int Size;                     // Size is also defined in IX9
};

See Also

property attribute