Called when user data has been changed in a text buffer.
Namespace: Microsoft.VisualStudio.Package
Assembly: Microsoft.VisualStudio.Package.LanguageService.9.0 (in Microsoft.VisualStudio.Package.LanguageService.9.0.dll)
Syntax
'宣言
Public Overridable Sub OnUserDataChange ( _
ByRef riidKey As Guid, _
vtNewValue As Object _
)
'使用
Dim instance As Source
Dim riidKey As Guid
Dim vtNewValue As Object
instance.OnUserDataChange(riidKey, vtNewValue)
public virtual void OnUserDataChange(
ref Guid riidKey,
Object vtNewValue
)
public:
virtual void OnUserDataChange(
Guid% riidKey,
Object^ vtNewValue
)
public function OnUserDataChange(
riidKey : Guid,
vtNewValue : Object
)
Parameters
riidKey
Type: System.Guid%The GUID representing the value that was changed.
vtNewValue
Type: System.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.
Permissions
- 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.