Läs på engelska

Dela via


SymbolDisplayLocalOptions Enum

Definition

Specifies the options for how locals are displayed in the description of a symbol.

This enumeration supports a bitwise combination of its member values.

C#
[System.Flags]
public enum SymbolDisplayLocalOptions
Inheritance
SymbolDisplayLocalOptions
Attributes

Fields

Name Value Description
None 0

Shows only the name of the local. For example, "x".

IncludeType 1

Shows the type of the local in addition to its name. For example, "int x" in C# or "x As Integer" in Visual Basic.

IncludeConstantValue 2

Shows the constant value of the local, if there is one, in addition to its name. For example "x = 1".

IncludeModifiers 4

Includes the ref keyword for ref-locals and the scoped keyword for scoped locals.

IncludeRef 4

Includes the ref keyword for ref-locals and the scoped keyword for scoped locals. Replaced by IncludeModifiers.

Applies to

Produkt Versioner
Roslyn 4.2.0, 4.3.0, 4.4.0, 4.5.0, 4.6.0, 4.7.0, 4.8.0, 4.9.2, 3.0.0, 3.1.0, 3.2.0, 3.2.1, 3.3.1, 3.4.0, 3.5.0, 3.6.0, 3.7.0, 3.8.0, 3.9.0, 3.10.0, 3.11.0, 4.0.1, 4.1.0, 4.12.2, 4.13.0