IVsObjectList.OnClose(VSTREECLOSEACTIONS[]) Yöntem

Tanım

Geçerli ağaç listesini kapanmakta olduğunu bildirir.

public:
 int OnClose(cli::array <Microsoft::VisualStudio::Shell::Interop::VSTREECLOSEACTIONS> ^ ptca);
public:
 int OnClose(Platform::Array <Microsoft::VisualStudio::Shell::Interop::VSTREECLOSEACTIONS> ^ ptca);
int OnClose(std::Array <Microsoft::VisualStudio::Shell::Interop::VSTREECLOSEACTIONS> const & ptca);
public int OnClose (Microsoft.VisualStudio.Shell.Interop.VSTREECLOSEACTIONS[] ptca);
abstract member OnClose : Microsoft.VisualStudio.Shell.Interop.VSTREECLOSEACTIONS[] -> int
Public Function OnClose (ptca As VSTREECLOSEACTIONS()) As Integer

Parametreler

ptca
VSTREECLOSEACTIONS[]

dışı Ağacın, bu ağaç listesi kapatılırken gerçekleştirilecek eylemi görüntülemesi gerektiğini belirtir. Değerler VSTREECLOSEACTIONS numaralandırmasından alınır.

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.

Uygulamalar

Açıklamalar

COM Imzası

Vsshell. IDL dosyasından:

HRESULT IVsObjectList::OnClose(  
   [out] VSTREECLOSEACTIONS *ptca  
);  

OnClose Kullanıcı ağaç listesini daraltıldığında çağrılır. ptca VSTREECLOSEACTIONS Ağaç görünümünün hangi eylemi yapması gerektiğini belirtmek için, öğesinden uygun numaralandırma değerine ayarlayın.

Şunlara uygulanır