AuthoringSink.StartName(TextSpan, String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
- 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.