IVsToolboxItemProvider.GetItemContent(String, UInt16, IntPtr) Method

Definition

Returns a global handle to a user interface item's content.

public:
 int GetItemContent(System::String ^ szItemID, System::UInt16 format, [Runtime::InteropServices::Out] IntPtr % pGlobal);
public int GetItemContent (string szItemID, ushort format, out IntPtr pGlobal);
abstract member GetItemContent : string * uint16 * nativeint -> int
Public Function GetItemContent (szItemID As String, format As UShort, ByRef pGlobal As IntPtr) As Integer

Parameters

szItemID
String

[in] The item ID.

format
UInt16

[in] The format of the data to return.

pGlobal
IntPtr

nativeint

[out] A global handle to the item content. This global should be freed by the caller.

Returns

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

Applies to