با مجموعهها، منظم بمانید
ذخیره و طبقهبندی محتوا براساس اولویتهای شما.
blockly > رویدادها > CommentBase > CommentCreateDeleteHelper
تابع کمکی برای نظر[ایجاد|حذف]
امضا:
static CommentCreateDeleteHelper(event: CommentCreate | CommentDelete, create: boolean): void;
پارامترها
پارامتر | تایپ کنید | توضیحات |
---|
رویداد | نظر ایجاد | نظر حذف | رویداد برای اجرا. |
ایجاد کنید | بولی | اگر درست است پس ایجاد کنید، اگر نادرست است سپس حذف کنید |
برمی گرداند:
باطل
جز در مواردی که غیر از این ذکر شده باشد،محتوای این صفحه تحت مجوز Creative Commons Attribution 4.0 License است. نمونه کدها نیز دارای مجوز Apache 2.0 License است. برای اطلاع از جزئیات، به خطمشیهای سایت Google Developers مراجعه کنید. جاوا علامت تجاری ثبتشده Oracle و/یا شرکتهای وابسته به آن است.
تاریخ آخرین بهروزرسانی 2025-07-24 بهوقت ساعت هماهنگ جهانی.
[[["درک آسان","easyToUnderstand","thumb-up"],["مشکلم را برطرف کرد","solvedMyProblem","thumb-up"],["غیره","otherUp","thumb-up"]],[["اطلاعاتی که نیاز دارم وجود ندارد","missingTheInformationINeed","thumb-down"],["بیشازحد پیچیده/ مراحل بسیار زیاد","tooComplicatedTooManySteps","thumb-down"],["قدیمی","outOfDate","thumb-down"],["مشکل ترجمه","translationIssue","thumb-down"],["مشکل کد / نمونهها","samplesCodeIssue","thumb-down"],["غیره","otherDown","thumb-down"]],["تاریخ آخرین بهروزرسانی 2025-07-24 بهوقت ساعت هماهنگ جهانی."],[],["The `CommentCreateDeleteHelper` method facilitates the creation or deletion of comments. It accepts two parameters: an `event` of type `CommentCreate` or `CommentDelete`, and a boolean `create`. If `create` is true, the method handles comment creation; if false, it handles comment deletion. The method's return type is `void`, and it serves as a helper function within the `CommentBase` class of the `Events` namespace.\n"]]