Export (0) Print
Expand All
Expand Minimize

JS1245: A non-static member cannot be accessed with the class name

The code is attempting to access a non-static class member by using the class name. Only static class members are associated with the class itself; non-static members are associated with and accessed through a particular class instance.

To correct this error

  • Make sure that non-static members are accessed with a class instance.

Community Additions

ADD
Show:
© 2014 Microsoft