Blockly は 2025 年 11 月 10 日に Raspberry Pi Foundation に移行しました。ブログ投稿とよくある質問をご覧ください。
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
ブロックする >ConnectionDB >removeConnection
ConnectionDB.removeConnection() メソッド
データベースから接続を削除します。データベースにすでに存在している必要があります。
署名:
removeConnection(connection: RenderedConnection, yPos: number): void;
パラメータ
| パラメータ |
型 |
説明 |
| connection |
RenderedConnection |
削除する接続。 |
| yPos |
数値 |
接続のインデックスを見つけるために使用される y 位置。 |
戻り値:
void
例外
{エラー} データベースで接続が見つからない場合。
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2025-07-25 UTC。
[null,null,["最終更新日 2025-07-25 UTC。"],[],["The `removeConnection` method within the `ConnectionDB` class removes a specified `RenderedConnection` from the database. It requires the connection to exist and uses a `yPos` number to locate its index. The method takes the connection and its y-position as parameters. Upon successful removal, the method returns void. An error is thrown if the connection cannot be found.\n"]]