blockly > ConnectionDB > removeConnection
Methode „ConnectionDB.removeConnection()“
Eine Verbindung aus der Datenbank entfernen Muss bereits in der Datenbank vorhanden sein.
Unterschrift:
removeConnection(connection: RenderedConnection, yPos: number): void;
Parameter
Parameter |
Typ |
Beschreibung |
Verbindung |
RenderedConnection |
Die Verbindung, die entfernt werden soll. |
yPos |
Zahl |
Die Y-Position, anhand derer der Index der Verbindung ermittelt wird. |
Gibt zurück:
void
Ausnahmen
{Error} Wenn die Verbindung in der Datenbank nicht gefunden werden kann.
Sofern nicht anders angegeben, sind die Inhalte dieser Seite unter der Creative Commons Attribution 4.0 License und Codebeispiele unter der Apache 2.0 License lizenziert. Weitere Informationen finden Sie in den Websiterichtlinien von Google Developers. Java ist eine eingetragene Marke von Oracle und/oder seinen Partnern.
Zuletzt aktualisiert: 2024-10-16 (UTC).
[null,null,["Zuletzt aktualisiert: 2024-10-16 (UTC)."],[[["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."]]],["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"]]