All rules
IDE0003Language rules ('this.' and 'Me.' qualifiers)

Member access should be qualified

Member access should be qualified

Microsoft docs

Description

These two rules define whether or not you prefer the use of this (C#) and Me. (Visual Basic) qualifiers. To enforce that the qualifiers *aren't* present, set the severity of IDE0003 to warning or error. To enforce that the qualifiers *are* present, set the severity of IDE0009 to warning or error.

For example, if you prefer qualifiers for fields and properties but not for methods or events, then you can enable IDE0009 and set the options dotnet_style_qualification_for_field and dotnet_style_qualification_for_property to true. However, this configuration would not flag methods and events that *do* have this and Me qualifiers. To also enforce that methods and events *don't* have qualifiers, enable IDE0003.

Example

// dotnet_style_qualification_for_field = true
this.capacity = 0;

// dotnet_style_qualification_for_field = false
capacity = 0;

Configurable options

Vote for the value each option should take in the generated .editorconfig.

dotnet_style_qualification_for_field
default: false
dotnet_style_qualification_for_property
default: false
dotnet_style_qualification_for_method
default: false
dotnet_style_qualification_for_event
default: false
Group results
0 yes 0 no
ConsensusNone (disabled)
Severity preference (yes voters)
Suggestion0
Warning0
Error0