blockly > ConnectionDB > removeConnection
ConnectionDB.removeConnection() 方法
從資料庫中移除連線。必須已存在資料庫中。
Signature:
removeConnection(connection: RenderedConnection, yPos: number): void;
參數
參數 |
類型 |
說明 |
連結 |
RenderedConnection |
要移除的連線。 |
yPos |
數字 |
用於尋找連線索引的 y 位置。 |
退貨:
void
例外狀況
{錯誤}:如果資料庫中找不到連結。
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2024-10-16 (世界標準時間)。
[null,null,["上次更新時間:2024-10-16 (世界標準時間)。"],[[["The `removeConnection` method is used to remove a specific connection from the ConnectionDB."],["In order to remove a connection, it must already exist in the database."],["To use this method, you must provide the `RenderedConnection` object and its y position (`yPos`) for database lookup."],["If the provided connection is not found in the database, it will throw an error."]]],[]]