Package.IVsToolboxItemProvider.GetItemContent Method (String, UInt16, IntPtr)
Visual Studio 2015
Gets an item.
Assembly: Microsoft.VisualStudio.Shell.14.0 (in Microsoft.VisualStudio.Shell.14.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.Int32If 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.
Show: