AuthoringSink.StartName(TextSpan, String) Method

Definition

In support of Member Selection, CompleteWord, QuickInfo, MethodTip, and Autos, the StartName and QualifyName methods are called. StartName is called for each identifier that is parsed (e.g. "Console")

public:
 virtual void StartName(Microsoft::VisualStudio::TextManager::Interop::TextSpan span, System::String ^ name);
public:
 virtual void StartName(Microsoft::VisualStudio::TextManager::Interop::TextSpan span, Platform::String ^ name);
 virtual void StartName(Microsoft::VisualStudio::TextManager::Interop::TextSpan span, std::wstring const & name);
public virtual void StartName (Microsoft.VisualStudio.TextManager.Interop.TextSpan span, string name);
abstract member StartName : Microsoft.VisualStudio.TextManager.Interop.TextSpan * string -> unit
override this.StartName : Microsoft.VisualStudio.TextManager.Interop.TextSpan * string -> unit
Public Overridable Sub StartName (span As TextSpan, name As String)

Parameters

span
TextSpan

[in] A TextSpan object indicating the location of the identifier.

name
String

[in] The name of the identifier.

Remarks

If the FindNames property returns true, this method is called to add the identifier's name and its location to internal lists. This method is typically called while parsing a method's parameter list.

The base method validates the TextSpan object and then if the identifier's location contains the starting point of the parse operation, adds the name and location to two internal lists called Names and SourceLocations, respectively.

Applies to