AuthoringSink.StartName Method

Called when an identifier is parsed.

Namespace:  Microsoft.VisualStudio.Package
Assembly:  Microsoft.VisualStudio.Package.LanguageService (in Microsoft.VisualStudio.Package.LanguageService.dll)

Syntax

'Declaration
Public Overridable Sub StartName ( _
    span As TextSpan, _
    name As String _
)
'Usage
Dim instance As AuthoringSink 
Dim span As TextSpan 
Dim name As String

instance.StartName(span, name)
public virtual void StartName(
    TextSpan span,
    string name
)
public:
virtual void StartName(
    TextSpan span, 
    String^ name
)
public function StartName(
    span : TextSpan, 
    name : String
)

Parameters

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.

.NET Framework Security

See Also

Reference

AuthoringSink Class

AuthoringSink Members

Microsoft.VisualStudio.Package Namespace