Compartilhar via


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

Definition

Gets an item.

 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;
int IVsToolboxItemProvider.GetItemContent (string itemId, ushort format, out IntPtr global);
abstract member Microsoft.VisualStudio.Shell.Interop.IVsToolboxItemProvider.GetItemContent : string * uint16 * nativeint -> int
override this.Microsoft.VisualStudio.Shell.Interop.IVsToolboxItemProvider.GetItemContent : string * uint16 * nativeint -> int
Function GetItemContent (itemId As String, format As UShort, ByRef global As IntPtr) As Integer Implements IVsToolboxItemProvider.GetItemContent

Parameters

itemId
String

[in] The Item ID.

format
UInt16

[in] The format of the data to return.

global
IntPtr

nativeint

[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