IVsObjectList2.OnClose(VSTREECLOSEACTIONS[]) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
通知当前树列表正在关闭。
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
参数
- ptca
- VSTREECLOSEACTIONS[]
弄指定树视图关闭此树列表时要执行的操作。 值取自 VSTREECLOSEACTIONS 枚举。
返回
如果该方法成功,则它会返回 S_OK。 如果该方法失败,则会返回错误代码。
注解
COM 签名
从 vsshell80:
[C++]
HRESULT IVsObjectList2::OnClose(
[out] VSTREECLOSEACTIONS *ptca
);
OnClose 当用户折叠树列表时调用。 设置 ptca 为的相应枚举值 VSTREECLOSEACTIONS ,以指示树视图应执行的操作。