Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here.

Edit and Continue (Visual Basic): Constants Edits

This topic applies to:

Edition

Visual Basic

C#

C++

Web Developer

Express

Topic appliesTopic does not applyTopic does not applyTopic applies

Standard

Topic appliesTopic does not applyTopic does not applyTopic applies

Pro and Team

Topic appliesTopic does not applyTopic does not applyTopic applies

Table legend:

Topic applies

Applies

Topic does not apply

Does not apply

Topic applies but command hidden by default

Command or commands hidden by default.

Changes to constants while in Edit and Continue mode are very limited. Specifically, Edit and Continue does not support the following changes:

  • Defining a new constant, unless the constant is private and there are no occurrences of the constant name in any active statement.

  • Changing the type or value of a constant.

  • Removing a constant.

If you want to make one of these changes, you must stop debugging and recompile your project.

There is no limit on adding, changing, or removing local constants inside a method body.

Community Additions

ADD
Show:
© 2015 Microsoft