Source::SetUserData Method (Guid, Object^)
Visual Studio 2015
Sets the given user data property to the given value.
Assembly: Microsoft.VisualStudio.Package.LanguageService.14.0 (in Microsoft.VisualStudio.Package.LanguageService.14.0.dll)
Parameters
- key
-
Type:
System::Guid
The GUID of the user data property to set the value for.
- data
-
Type:
System::Object^
An object representing the value to set.
This method obtains the IVsUserData interface from the IVsTextLines object (which was passed to the Source class constructor), and then calls the SetData method with the given GUID and value.
See the GetUserData method for the GUIDs that are supported.
Show: