Source.OnUserDataChange Method
Called when user data has been changed in a text buffer.
Namespace: Microsoft.VisualStudio.Package
Assemblies: Microsoft.VisualStudio.Package.LanguageService.12.0 (in Microsoft.VisualStudio.Package.LanguageService.12.0.dll)
Microsoft.VisualStudio.Package.LanguageService.10.0 (in Microsoft.VisualStudio.Package.LanguageService.10.0.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)
Microsoft.VisualStudio.Package.LanguageService (in Microsoft.VisualStudio.Package.LanguageService.dll)
Syntax
'Declaration
Public Overridable Sub OnUserDataChange ( _
ByRef riidKey As Guid, _
vtNewValue As Object _
)
public virtual void OnUserDataChange(
ref Guid riidKey,
Object vtNewValue
)
public:
virtual void OnUserDataChange(
Guid% riidKey,
Object^ vtNewValue
)
abstract OnUserDataChange :
riidKey:Guid byref *
vtNewValue:Object -> unit
override OnUserDataChange :
riidKey:Guid byref *
vtNewValue:Object -> unit
public function OnUserDataChange(
riidKey : Guid,
vtNewValue : Object
)
Parameters
riidKey
Type: Guid%The GUID representing the value that was changed.
vtNewValue
Type: ObjectA Variant containing the new value.
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
- 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.