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 C3252

'function' : cannot change access level of a method in a derived class

Since all methods in an interface are public, it is illegal to define an interface method in the private section of a class.

The following sample generates C3252:

#using <mscorlib.dll>
__gc __interface A {
   void f1();
};

class B : public A {
   private:
   void f1();   // C3252; cannot change access level

   public:
   /* declare here to resolve the error
   void f1();
   */
};

void main() {
}