Kommentar
Åtkomst till den här sidan kräver auktorisering. Du kan prova att logga in eller ändra kataloger.
Åtkomst till den här sidan kräver auktorisering. Du kan prova att ändra kataloger.
Gets the unique ID of a item.
Namespace: Microsoft.VisualStudio.Shell.Interop
Assembly: Microsoft.VisualStudio.Shell.Interop.8.0 (in Microsoft.VisualStudio.Shell.Interop.8.0.dll)
Syntax
'Declaration
Function GetItemID ( _
pDO As IDataObject, _
<OutAttribute> ByRef pbstrID As String _
) As Integer
int GetItemID(
IDataObject pDO,
out string pbstrID
)
int GetItemID(
[InAttribute] IDataObject^ pDO,
[OutAttribute] String^% pbstrID
)
abstract GetItemID :
pDO:IDataObject *
pbstrID:string byref -> int
function GetItemID(
pDO : IDataObject,
pbstrID : String
) : int
Parameters
pDO
Type: Microsoft.VisualStudio.OLE.Interop.IDataObjectAn IDataObject interface to the item.
pbstrID
Type: System.String%The ID of the item. If the item is found, but has no ID then this values is nulla null reference (Nothing in Visual Basic).
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 vsshell80.idl:
HRESULT GetItemID(
[in] IDataObject* pDO,
[out] BSTR* pbstrID
);
.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.