Прочетете на английски

Споделяне чрез


SymbolDisplayPartKind Enum

Definition

Specifies the kinds of a piece of classified text (SymbolDisplayPart).

C#
public enum SymbolDisplayPartKind
Inheritance
SymbolDisplayPartKind

Fields

Name Value Description
AliasName 0

The name of an alias.

AssemblyName 1

The name of an assembly.

ClassName 2

The name of a class.

DelegateName 3

The name of a delegate.

EnumName 4

The name of an enum.

ErrorTypeName 5

The name of an error type.

EventName 6

The name of an event.

FieldName 7

The name of a field.

InterfaceName 8

The name of an interface.

Keyword 9

A language keyword.

LabelName 10

The name of a label.

LineBreak 11

A line-break (i.e. whitespace).

NumericLiteral 12

A numeric literal.

Typically for the default values of parameters and the constant values of fields.

StringLiteral 13

A string literal.

Typically for the default values of parameters and the constant values of fields.

LocalName 14

The name of a local.

MethodName 15

The name of a method.

ModuleName 16

The name of a module.

NamespaceName 17

The name of a namespace.

Operator 18

The symbol of an operator (e.g. "+").

ParameterName 19

The name of a parameter.

PropertyName 20

The name of a property.

Punctuation 21

A punctuation character (e.g. "(", ".", ",") other than an Operator.

Space 22

A single space character.

StructName 23

The name of a struct (structure in Visual Basic).

AnonymousTypeIndicator 24

A keyword-like part for anonymous types (not actually a keyword).

Text 25

An unclassified part.

Never returned - only set in user-constructed parts.

TypeParameterName 26

The name of a type parameter.

RangeVariableName 27

The name of a query range variable.

EnumMemberName 28

The name of an enum member.

ExtensionMethodName 29

The name of a reduced extension method.

When an extension method is in it's non-reduced form it will be will be marked as MethodName.

ConstantName 30

The name of a field or local constant.

RecordClassName 31

The name of a record class.

RecordStructName 32

The name of a record struct.

Applies to

Продукт Версии
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