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 C2844

'member' : cannot be a member of interface 'interface'

An interface cannot contain a data member unless it is also a property.

Anything other than a property or member function is not allowed in an interface. Furthermore, constructors, destructors, and operators are not allowed.

The following sample generates C2844:

#using <mscorlib.dll>
__gc __interface IFace {
   int i;   // C2844
   
   // try the line below to resolve the error
   // __property int Size { get; set; };
};

void main(){
}