IVsToolboxItemProvider.GetItemContent(String, UInt16, IntPtr) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.