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


Gets an item.

Namespace:   Microsoft.VisualStudio.Shell
Assembly:  Microsoft.VisualStudio.Shell.14.0 (in Microsoft.VisualStudio.Shell.14.0.dll)

int IVsToolboxItemProvider.GetItemContent(
	string itemId,
	ushort format,
	out IntPtr global


Type: System.String

[in] The Item ID.

Type: System.UInt16

[in] The format of the data to return.

Type: System.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.

Return Value

Type: System.Int32

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

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

Return to top