封鎖 >ContextMenuRegistry>取消註冊

ContextMenuRegistry.unregister() 方法

使用指定 ID 取消註冊 RegistryItem。

Signature:

unregister(id: string): void;

參數

參數 類型 說明
id 字串 要移除的 RegistryItem 的 ID。

傳回:

void

例外狀況

如果指定 ID 的項目不存在,則為 {Error}。