Package.IVsToolboxItemProvider.GetItemContent Method

Gets an item.

Namespace:  Microsoft.VisualStudio.Shell
Assembly:  Microsoft.VisualStudio.Shell.11.0 (in Microsoft.VisualStudio.Shell.11.0.dll)

Syntax

'Declaração
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
)

Parameters

  • 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.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

See Also

Reference

Package Class

Microsoft.VisualStudio.Shell Namespace