Package.IVsToolboxItemProvider.GetItemContent(String, UInt16, IntPtr) Method

Definition

Gets an item.

C++
 virtual int Microsoft.VisualStudio.Shell.Interop.IVsToolboxItemProvider.GetItemContent(System::String ^ itemId, System::UInt16 format, [Runtime::InteropServices::Out] IntPtr % global) = Microsoft::VisualStudio::Shell::Interop::IVsToolboxItemProvider::GetItemContent;

Parameters

itemId
String

[in] The Item ID.

format
UInt16

[in] The format of the data to return.

global
IntPtr

[out] The location to which to return a global handle to the item content. This global is owned and should be freed by the caller.

Returns

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Implements

Remarks

This method is called by the shell to retrieve the content of a data format in a toolbox item that was statically registered.

Applies to

Product Versions
Visual Studio SDK 2015, 2017, 2019, 2022