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
'宣言
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
- 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.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.