blockly > Names > getUserNames
متد Names.getUserNames().
فهرستی از همه نامهای شناخته شده ایجاد شده توسط کاربر با یک نوع نام مشخص را برگردانید.
امضا:
getUserNames(type: NameType | string): string[];
پارامترها
پارامتر | تایپ کنید | توضیحات |
---|
نوع | نوع نام | رشته | نوع موجودیت در Blockly ('VARIABLE'، 'PROCEDURE'، 'DEVELOPER_VARIABLE'، و غیره...). |
برمیگرداند:
رشته[]
فهرستی از نامهای موجودیت Blockly (بدون محدودیت).
جز در مواردی که غیر از این ذکر شده باشد،محتوای این صفحه تحت مجوز Creative Commons Attribution 4.0 License است. نمونه کدها نیز دارای مجوز Apache 2.0 License است. برای اطلاع از جزئیات، به خطمشیهای سایت Google Developers مراجعه کنید. جاوا علامت تجاری ثبتشده Oracle و/یا شرکتهای وابسته به آن است.
تاریخ آخرین بهروزرسانی 2025-01-07 بهوقت ساعت هماهنگ جهانی.
[null,null,["تاریخ آخرین بهروزرسانی 2025-01-07 بهوقت ساعت هماهنگ جهانی."],[[["The `getUserNames` method retrieves a list of all user-created names for a given type in Blockly."],["It accepts a `type` parameter, specifying the entity type like 'VARIABLE' or 'PROCEDURE', and returns an array of names as strings."]]],["The `getUserNames()` method, part of Blockly's `Names` class, retrieves a list of user-defined names for a specific entity type. It accepts a `type` parameter, which can be a `NameType` or a string representing the entity (e.g., 'VARIABLE', 'PROCEDURE'). The method then returns a string array containing all known user-created names matching the provided type, without any constraints.\n"]]