Compartilhar via


Source.OnUserDataChange(Guid, Object) Method

Definition

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

public:
 virtual void OnUserDataChange(Guid % riidKey, System::Object ^ vtNewValue);
public virtual void OnUserDataChange (ref Guid riidKey, object vtNewValue);
abstract member OnUserDataChange : Guid * obj -> unit
override this.OnUserDataChange : Guid * obj -> unit
Public Overridable Sub OnUserDataChange (ByRef riidKey As Guid, vtNewValue As Object)

Parameters

riidKey
Guid

The GUID representing the value that was changed.

vtNewValue
Object

A Variant containing the new value.

Implements

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.

Applies to