共用方式為


IVsToolboxDataProvider.GetItemInfo Method

Returns the item information for the specified data object.

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

Syntax

'宣告
Function GetItemInfo ( _
    pDO As IDataObject, _
    <OutAttribute> ptif As TBXITEMINFO() _
) As Integer
'用途
Dim instance As IVsToolboxDataProvider
Dim pDO As IDataObject
Dim ptif As TBXITEMINFO()
Dim returnValue As Integer

returnValue = instance.GetItemInfo(pDO, _
    ptif)
int GetItemInfo(
    IDataObject pDO,
    TBXITEMINFO[] ptif
)
int GetItemInfo(
    [InAttribute] IDataObject^ pDO, 
    [OutAttribute] array<TBXITEMINFO>^ ptif
)
abstract GetItemInfo : 
        pDO:IDataObject * 
        ptif:TBXITEMINFO[] byref -> int 
function GetItemInfo(
    pDO : IDataObject, 
    ptif : TBXITEMINFO[]
) : int

Parameters

Return Value

Type: System.Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Remarks

COM Signature

From vsshell.idl:

HRESULT IVsToolboxDataProvider::GetItemInfo(
   [in]IDataObject* pDO,
   [out]PTBXITEMINFO ptif
);

.NET Framework Security

See Also

Reference

IVsToolboxDataProvider Interface

IVsToolboxDataProvider Members

Microsoft.VisualStudio.Shell.Interop Namespace