Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Called when an identifier is parsed.
Namespace: Microsoft.VisualStudio.Package
Assemblies: Microsoft.VisualStudio.Package.LanguageService.11.0 (in Microsoft.VisualStudio.Package.LanguageService.11.0.dll)
Microsoft.VisualStudio.Package.LanguageService.12.0 (in Microsoft.VisualStudio.Package.LanguageService.12.0.dll)
Microsoft.VisualStudio.Package.LanguageService (in Microsoft.VisualStudio.Package.LanguageService.dll)
Microsoft.VisualStudio.Package.LanguageService.9.0 (in Microsoft.VisualStudio.Package.LanguageService.9.0.dll)
Microsoft.VisualStudio.Package.LanguageService.10.0 (in Microsoft.VisualStudio.Package.LanguageService.10.0.dll)
Syntax
'Declaration
Public Overridable Sub StartName ( _
span As TextSpan, _
name As String _
)
public virtual void StartName(
TextSpan span,
string name
)
public:
virtual void StartName(
TextSpan span,
String^ name
)
abstract StartName :
span:TextSpan *
name:string -> unit
override StartName :
span:TextSpan *
name:string -> unit
public function StartName(
span : TextSpan,
name : String
)
Parameters
span
Type: Microsoft.VisualStudio.TextManager.Interop.TextSpan[in] A TextSpan object indicating the ___location of the identifier.
name
Type: 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.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.