IVsObjectList.OnClose(VSTREECLOSEACTIONS[]) Methode

Definition

Benachrichtigt die aktuelle Strukturliste, dass sie geschlossen wird.

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

Parameter

ptca
VSTREECLOSEACTIONS[]

[out] Teilt der Strukturansicht die Aktion mit, die ausgeführt werden soll, wenn diese Strukturliste geschlossen wird. Die Werte werden der VSTREECLOSEACTIONS-Enumeration entnommen.

Gibt zurück

Int32

Wenn die Methode erfolgreich ist, wird S_OK zurückgegeben. Bei einem Fehler wird ein Fehlercode zurückgegeben.

Implementiert

Hinweise

COM-Signatur

Aus vsshell. idl:

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

OnClose wird aufgerufen, wenn der Benutzer die Struktur Liste reduziert. Legen ptca Sie auf den entsprechenden Enumerationswert aus fest VSTREECLOSEACTIONS , um anzugeben, welche Aktion die Strukturansicht ausführen sollte.

Gilt für