다음을 통해 공유


SymbolDefinition Class

Definition

Describes the definition of a symbol, within the context of a source file.

public ref class SymbolDefinition : IEquatable<Microsoft::VisualStudio::Workspace::Indexing::SymbolDefinition ^>
[System.Diagnostics.DebuggerDisplay("{FullyQualifiedName}")]
public class SymbolDefinition : IEquatable<Microsoft.VisualStudio.Workspace.Indexing.SymbolDefinition>
[<System.Diagnostics.DebuggerDisplay("{FullyQualifiedName}")>]
type SymbolDefinition = class
    interface IEquatable<SymbolDefinition>
Public Class SymbolDefinition
Implements IEquatable(Of SymbolDefinition)
Inheritance
SymbolDefinition
Attributes
Implements

Remarks

This interface does not specify the path to the source file because some of its producers (e.g. IFileScanner may not know the path to the source file. Also, some source files may not even exist locally, so setting the context of which file the symbol appears in is the responsibility of other code that hands this interface around.

Constructors

SymbolDefinition(String, String, SymbolKind, SymbolAccessibility, TextLocation)

Initializes a new instance of the SymbolDefinition class.

SymbolDefinition(String, SymbolKind, SymbolAccessibility, TextLocation)

Initializes a new instance of the SymbolDefinition class.

Properties

Accessibility

Gets the accessibility of the symbol.

FullyQualifiedName

Gets the fully-qualified name of the symbol.

Kind

Gets the kind of symbol.

Location

Gets the position of the symbol's definition within the source file.

Name

Gets the short name of the symbol.

Methods

Equals(Object)
Equals(SymbolDefinition)

Indicates whether the current object is equal to another object of the same type.

GetHashCode()

Serves as the default hash function.

Applies to