Source::SetUserData Method (Guid, Object^)

 

Sets the given user data property to the given value.

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

public:
void SetUserData(
	Guid% key,
	Object^ data
)

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.

Return to top
Show: