SymbolDisplayLocalOptions 列舉

定義

指定符號描述中如何顯示區域變數的選項。

此列舉支援其成員值的位元組合。

C#
[System.Flags]
public enum SymbolDisplayLocalOptions
繼承
SymbolDisplayLocalOptions
屬性

欄位

IncludeConstantValue 2

除了其名稱之外,還會顯示本機的常數值。 例如「x = 1」。

IncludeModifiers 4

ref包含 ref-locals 的關鍵字,以及範圍區域變數的 scoped 關鍵字。

IncludeRef 4

ref包含 ref-locals 的關鍵字,以及範圍區域變數的 scoped 關鍵字。 取代成 IncludeModifiers

IncludeType 1

除了其名稱之外,還會顯示本機的類型。 例如,C# 中的 「int x」 或 Visual Basic 中的 「x As Integer」。

None 0

只顯示本機的名稱。 例如,「x」。

適用於

產品 版本
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