The requested page is not available for the requested platform. You are viewing the content for Default platform.

Code-behind Scope

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

opCodeBehindScope

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.
Note

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.