Source::OnUserDataChange Method (Guid, Object^)

 

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

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

public:
virtual void OnUserDataChange(
	Guid% riidKey,
	Object^ vtNewValue
)

Parameters

riidKey
Type: System::Guid

The GUID representing the value that was changed.

vtNewValue
Type: System::Object^

A Variant containing the new value.

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.

Return to top
Show: