Udostępnij za pośrednictwem


Edit and Continue (Visual Basic): Module Member Declaration Edits

This topic applies to:

Edition

Visual Basic

C#

C++

Web Developer

Express

Topic applies Topic does not apply Topic does not apply Topic applies

Standard

Topic applies Topic does not apply Topic does not apply Topic applies

Pro and Team

Topic applies Topic does not apply Topic does not apply Topic 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.

Using Edit and Continue, you can make a variety of changes to module members, such as properties, methods, and fields, while in Break mode. Some changes, however, are not supported. Most notably, Edit and Continue does not support adding, deleting, or changing the type or signature of non-private members.

Specifically, Edit and Continue does not support the following changes:

  • Adding a new member, unless that member is Private and there are no occurrences of the name in any active statement.

  • Removing a property or method.

  • Changing the signature of a non-private property or method.

  • Editing any method that uses generics.

  • Changing the access modifiers for a property or method, for example, changing Public to Private.

  • Deleting or changing the type of an existing field.

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

See Also

Tasks

How to: Apply Edits in Break Mode with Edit and Continue

Reference

Edit and Continue (Visual Basic): Unsupported Declaration Edits

Edit and Continue (Visual Basic): Class Member Declaration Edits

Edit and Continue (Visual Basic): Structure Member Declaration Edits

Other Resources

Edit and Continue (Visual Basic)