Compartir a través de


Source.OnUserDataChange Method

Called when user data has been changed in a text buffer.

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

Syntax

'Declaración
Public Overridable Sub OnUserDataChange ( _
    ByRef riidKey As Guid, _
    vtNewValue As Object _
)
public virtual void OnUserDataChange(
    ref Guid riidKey,
    Object vtNewValue
)

Parameters

  • riidKey
    Type: System.Guid%
    The GUID representing the value that was changed.

Implements

IVsUserDataEvents.OnUserDataChange(Guid%, Object)

Remarks

A text buffer can have a number of user-settable values associated with it. Each value is identified by a unique GUID. Whenever one of these values is changed with a call to the SetData method in the IVsUserData interface, the OnUserDataChange method is called.

The base method does nothing.

.NET Framework Security

See Also

Reference

Source Class

Microsoft.VisualStudio.Package Namespace