blockly > ConnectionDB > removeConnection
متد ConnectionDB.removeConnection().
یک اتصال را از پایگاه داده حذف کنید. باید از قبل در DB وجود داشته باشد.
امضا:
removeConnection(connection: RenderedConnection, yPos: number): void;
پارامترها
پارامتر | تایپ کنید | توضیحات |
---|
اتصال | RenderedConnection | اتصالی که باید حذف شود. |
yPos | شماره | موقعیت y برای یافتن شاخص اتصال استفاده می شود. |
برمیگرداند:
باطل
استثنائات
{ خطا } اگر اتصال در پایگاه داده یافت نشد.
جز در مواردی که غیر از این ذکر شده باشد،محتوای این صفحه تحت مجوز Creative Commons Attribution 4.0 License است. نمونه کدها نیز دارای مجوز Apache 2.0 License است. برای اطلاع از جزئیات، به خطمشیهای سایت Google Developers مراجعه کنید. جاوا علامت تجاری ثبتشده Oracle و/یا شرکتهای وابسته به آن است.
تاریخ آخرین بهروزرسانی 2024-11-11 بهوقت ساعت هماهنگ جهانی.
[null,null,["تاریخ آخرین بهروزرسانی 2024-11-11 بهوقت ساعت هماهنگ جهانی."],[[["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"]]