Gets an item.
Namespace:  Microsoft.VisualStudio.Shell
Assembly:  Microsoft.VisualStudio.Shell.12.0 (in Microsoft.VisualStudio.Shell.12.0.dll)
Syntax
'Declaration
Private Function GetItemContent ( _
    itemId As String, _
    format As UShort, _
    <OutAttribute> ByRef global As IntPtr _
) As Integer Implements IVsToolboxItemProvider.GetItemContent
int IVsToolboxItemProvider.GetItemContent(
    string itemId,
    ushort format,
    out IntPtr global
)
private:
virtual int GetItemContent(
    String^ itemId, 
    unsigned short format, 
    [OutAttribute] IntPtr% global
) sealed = IVsToolboxItemProvider::GetItemContent
private abstract GetItemContent : 
        itemId:string * 
        format:uint16 * 
        global:IntPtr byref -> int  
private override GetItemContent : 
        itemId:string * 
        format:uint16 * 
        global:IntPtr byref -> int
JScript does not support explicit interface implementations.
Parameters
- itemId 
 Type: String- [in] The Item ID. 
- format 
 Type: UInt16- [in] The format of the data to return. 
- global 
 Type: 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: Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.
Implements
IVsToolboxItemProvider.GetItemContent(String, UInt16, IntPtr%)
Remarks
This method is called by the shell to retrieve the content of a data format in a toolbox item that was statically registered.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.