Code-behind Scope

The Code-behind Scope page enables you to set the default scope for automatically declared members in web applications.


Each of the following options specifies the scope of an appropriate member:

  • Fields
  • Constants
  • Methods
  • Properties
  • Events
  • Types
  • Nested Types

The options can take on values corresponding to the visibility identifiers of the current programming language, or the following values:

  • Default - members are declared without visibility identifiers.
  • Match Parent Scope - the declared member has the same visibility identifier as it’s parent.


This product is designed for outdated versions of Visual Studio. Although Visual Studio 2015 is supported, consider using the CodeRush extension with Visual Studio 2015 or higher.