IVsToolboxItemProvider::GetItemContent Method (String^, UInt16, IntPtr)

 

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

Namespace:   Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop.10.0 (in Microsoft.VisualStudio.Shell.Interop.10.0.dll)

int GetItemContent(
	String^ szItemID,
	unsigned short format,
	[OutAttribute] IntPtr% pGlobal
)

Parameters

szItemID
Type: System::String^

[in] The item ID.

format
Type: System::UInt16

[in] The format of the data to return.

pGlobal
Type: System::IntPtr

[out] A global handle to the item content. This global 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.

Return to top
Show: