IVsHierarchyEvents.OnItemAdded(UInt32, UInt32, UInt32) Yöntem

Tanım

Hiyerarşiye bir öğe eklendiğinde istemcilere bildirir.

public:
 int OnItemAdded(System::UInt32 itemidParent, System::UInt32 itemidSiblingPrev, System::UInt32 itemidAdded);
public:
 int OnItemAdded(unsigned int itemidParent, unsigned int itemidSiblingPrev, unsigned int itemidAdded);
int OnItemAdded(unsigned int itemidParent, unsigned int itemidSiblingPrev, unsigned int itemidAdded);
public int OnItemAdded (uint itemidParent, uint itemidSiblingPrev, uint itemidAdded);
abstract member OnItemAdded : uint32 * uint32 * uint32 -> int
Public Function OnItemAdded (itemidParent As UInteger, itemidSiblingPrev As UInteger, itemidAdded As UInteger) As Integer

Parametreler

itemidParent
UInt32

'ndaki Öğenin eklendiği hiyerarşinin üst veya kök düğümünün tanımlayıcısı.

itemidSiblingPrev
UInt32

'ndaki Öğenin üst hiyerarşi () içindeki diğer öğelere (eşdüzey öğeler) göre eklendiğini gösteren tanımlayıcı itemidParent . Eşdüzey öğelerin başlangıcına yeni öğe eklenirse, bir değeri VSITEMID_NIL belirtilir. Öğe belirli bir düğümden sonra eklenirse, söz konusu düğümün öğe kimliği belirtilir.

itemidAdded
UInt32

'ndaki Eklenen öğenin tanımlayıcısı.

Döndürülenler

Int32

Yöntem başarılı olursa, döndürür S_OK . Başarısız olursa, bir hata kodu döndürür.

Açıklamalar

COM Imzası

Vsshell. IDL dosyasından:

HRESULT IVsHierarchyEvents::OnItemAdded(  
   [in] VSITEMID itemidParent,  
   [in] VSITEMID itemidSiblingPrev,  
   [in] VSITEMID itemidAdded  
);  

itemidSiblingPrevParametresi eklenen öğenin görünme sırasını denetler. Örneğin, C öğesini ekliyorsanız, itemidSiblingPrev c 'Nin b 'den sonra görünmesi için, var olan b öğesi için öğesini geçirmeniz gerekir.

Şunlara uygulanır