LanguageService.UpdateLanguageContext Method

Updates the current user help context in a selected region of the given source.

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

Syntax

'宣言
Public Overridable Sub UpdateLanguageContext ( _
    hint As LanguageContextHint, _
    buffer As IVsTextLines, _
    ptsSelection As TextSpan(), _
    context As IVsUserContext _
)
'使用
Dim instance As LanguageService
Dim hint As LanguageContextHint
Dim buffer As IVsTextLines
Dim ptsSelection As TextSpan()
Dim context As IVsUserContext

instance.UpdateLanguageContext(hint, _
    buffer, ptsSelection, context)
public virtual void UpdateLanguageContext(
    LanguageContextHint hint,
    IVsTextLines buffer,
    TextSpan[] ptsSelection,
    IVsUserContext context
)
public:
virtual void UpdateLanguageContext(
    LanguageContextHint hint, 
    IVsTextLines^ buffer, 
    array<TextSpan>^ ptsSelection, 
    IVsUserContext^ context
)
public function UpdateLanguageContext(
    hint : LanguageContextHint, 
    buffer : IVsTextLines, 
    ptsSelection : TextSpan[], 
    context : IVsUserContext
)

Parameters

  • ptsSelection
    Type: []

    [in] A single TextSpan object describing the selected range of text (or the current caret position).

Remarks

This method is called to allow the language service to update the given user context, usually in regards to dynamic help context.

The base method does nothing.

Permissions

See Also

Reference

LanguageService Class

LanguageService Members

Microsoft.VisualStudio.Package Namespace