Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

Package.IVsToolboxItemProvider.GetItemContent Method

Gets an item.

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

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

Parameters

itemId
Type: System.String
[in] The Item ID.
format
Type: System.UInt16
[in] The format of the data to return.
global
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.

Implements

IVsToolboxItemProvider.GetItemContent(String, UInt16, IntPtr)

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

Community Additions

ADD
Show:
© 2015 Microsoft