Share via


LanguageService.IVsLanguageContextProvider.UpdateLanguageContext Method

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

Namespace:  Microsoft.VisualStudio.Package
Assemblies:   Microsoft.VisualStudio.Package.LanguageService.9.0 (in Microsoft.VisualStudio.Package.LanguageService.9.0.dll)
  Microsoft.VisualStudio.Package.LanguageService (in Microsoft.VisualStudio.Package.LanguageService.dll)
  Microsoft.VisualStudio.Package.LanguageService.10.0 (in Microsoft.VisualStudio.Package.LanguageService.10.0.dll)
  Microsoft.VisualStudio.Package.LanguageService.12.0 (in Microsoft.VisualStudio.Package.LanguageService.12.0.dll)
  Microsoft.VisualStudio.Package.LanguageService.11.0 (in Microsoft.VisualStudio.Package.LanguageService.11.0.dll)

Syntax

'Declaration
Private Function UpdateLanguageContext ( _
    dwHint As UInteger, _
    buffer As IVsTextLines, _
    ptsSelection As TextSpan(), _
    ptr As Object _
) As Integer Implements IVsLanguageContextProvider.UpdateLanguageContext
int IVsLanguageContextProvider.UpdateLanguageContext(
    uint dwHint,
    IVsTextLines buffer,
    TextSpan[] ptsSelection,
    Object ptr
)
private:
virtual int UpdateLanguageContext(
    unsigned int dwHint, 
    IVsTextLines^ buffer, 
    array<TextSpan>^ ptsSelection, 
    Object^ ptr
) sealed = IVsLanguageContextProvider::UpdateLanguageContext
private abstract UpdateLanguageContext : 
        dwHint:uint32 * 
        buffer:IVsTextLines * 
        ptsSelection:TextSpan[] * 
        ptr:Object -> int  
private override UpdateLanguageContext : 
        dwHint:uint32 * 
        buffer:IVsTextLines * 
        ptsSelection:TextSpan[] * 
        ptr:Object -> int
JScript does not support explicit interface implementations.

Parameters

  • ptr
    Type: Object

    [in] An IVsUserContext object that is to be updated.

Return Value

Type: Int32
If successful, returns S_OK; otherwise, returns an error code.

Implements

IVsLanguageContextProvider.UpdateLanguageContext(UInt32, IVsTextLines, array<TextSpan[], Object)

Remarks

The given object can be queried for the IVsUserContext interface by casting it to the IVsUserContext interface: IVsUserContext pContext = ptr as IVsUserContext.

The base method calls the other LanguageService.UpdateLanguageContext and always returns S_OK.

.NET Framework Security

See Also

Reference

LanguageService Class

Microsoft.VisualStudio.Package Namespace