Udostępnij za pośrednictwem


Metoda IVsToolbox3.GetItemID — (IDataObject, String)

 

Pobiera unikatowy identyfikator elementu.

Przestrzeń nazw:   Microsoft.VisualStudio.Shell.Interop
Zestaw:  Microsoft.VisualStudio.Shell.Interop.8.0 (w Microsoft.VisualStudio.Shell.Interop.8.0.dll)

Składnia

int GetItemID(
    IDataObject pDO,
    out string pbstrID
)
int GetItemID(
    IDataObject^ pDO,
    [OutAttribute] String^% pbstrID
)
abstract GetItemID : 
        pDO:IDataObject *
        pbstrID:string byref -> int
Function GetItemID (
    pDO As IDataObject,
    <OutAttribute> ByRef pbstrID As String
) As Integer

Parametry

  • pbstrID
    Identyfikator elementu.Jeśli element zostanie znaleziony, ale nie ma Identyfikatora, a następnie wartości to null.

Wartość zwracana

Type: System.Int32

Jeśli metoda się powiedzie, zwraca S_OK.Jeśli nie powiedzie się, zwraca kod błędu.

Uwagi

Podpis COM

Z vsshell80.idl:

HRESULT GetItemID(
   [in] IDataObject* pDO,
   [out] BSTR* pbstrID
);

Zobacz też

Interfejs IVsToolbox3
Przestrzeń nazw Microsoft.VisualStudio.Shell.Interop

Powrót do początku