다음을 통해 공유


AuthoringSink.QualifyName Method

Called to note the location of a member reference.

Namespace:  Microsoft.VisualStudio.Package
Assemblies:   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)
  Microsoft.VisualStudio.Package.LanguageService (in Microsoft.VisualStudio.Package.LanguageService.dll)

Syntax

‘선언
Public Overridable Sub QualifyName ( _
    selectorContext As TextSpan, _
    nameContext As TextSpan, _
    name As String _
)
‘사용 방법
Dim instance As AuthoringSink
Dim selectorContext As TextSpan
Dim nameContext As TextSpan
Dim name As String

instance.QualifyName(selectorContext, _
    nameContext, name)
public virtual void QualifyName(
    TextSpan selectorContext,
    TextSpan nameContext,
    string name
)
public:
virtual void QualifyName(
    TextSpan selectorContext, 
    TextSpan nameContext, 
    String^ name
)
abstract QualifyName : 
        selectorContext:TextSpan * 
        nameContext:TextSpan * 
        name:string -> unit 
override QualifyName : 
        selectorContext:TextSpan * 
        nameContext:TextSpan * 
        name:string -> unit 
public function QualifyName(
    selectorContext : TextSpan, 
    nameContext : TextSpan, 
    name : String
)

Parameters

  • name
    Type: System.String
    [in] The member name as indicated by nameContext.

Remarks

If the FindNames property returns true, this method is called to add the specified name to a list of identifiers and a list of source locations.

The base method validates the two TextSpan objects, which includes insuring the nameContext follows the selectorContext, and then adds the name and its location to internal lists if the name's location contains the starting line of the parsing operation. These internal lists are called Names and SourceLocations, respectively.

.NET Framework Security

See Also

Reference

AuthoringSink Class

AuthoringSink Members

Microsoft.VisualStudio.Package Namespace