blockly > الأسماء > getUserNames
طريقةNames.getUserNames()
عرض قائمة بجميع الأسماء المعروفة التي أنشأها المستخدمون لنوع اسم محدّد.
Signature:
getUserNames(type: NameType | string): string[];
المعلمات
المعلمة |
النوع |
الوصف |
كتابة |
نوع الاسم | سلسلة |
نوع الكيان في Blockly ('VARIABLE' أو 'PROCEDURE' أو ' developer_VARIABLE'، إلخ...). |
المرتجعات:
سلسلة[]
قائمة بأسماء الكيانات المحظورة (بدون قيود).
إنّ محتوى هذه الصفحة مرخّص بموجب ترخيص Creative Commons Attribution 4.0 ما لم يُنصّ على خلاف ذلك، ونماذج الرموز مرخّصة بموجب ترخيص Apache 2.0. للاطّلاع على التفاصيل، يُرجى مراجعة سياسات موقع Google Developers. إنّ Java هي علامة تجارية مسجَّلة لشركة Oracle و/أو شركائها التابعين.
تاريخ التعديل الأخير: 2024-09-09 (حسب التوقيت العالمي المتفَّق عليه)
[null,null,["تاريخ التعديل الأخير: 2024-09-09 (حسب التوقيت العالمي المتفَّق عليه)"],[[["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"]]