रिसर्च सर्वे: Blockly के साथ अपने अनुभव के बारे में हमें बताएं
सर्वे शुरू करें
ब्लॉकली > रजिस्ट्री > getAllItems
Registry.getAll लेन-देन() फ़ंक्शन
दिए गए टाइप के साथ रजिस्टर किए गए आइटम का मैप दिखाता है.
हस्ताक्षर:
export declare function getAllItems<T>(type: string | Type<T>, opt_cased?: boolean, opt_throwIfMissing?: boolean): {
[key: string]: T | null | (new (...p1: any[]) => T);
} | null;
पैरामीटर
पैरामीटर |
टाइप |
ब्यौरा |
टाइप |
स्ट्रिंग | टाइप<T> |
प्लगिन का टाइप. (उदाहरण के लिए कैटगरी) |
opt_cased |
बूलियन |
(ज़रूरी नहीं) केस-लेस कुंजियों के बजाय, केस वाली कुंजियों के साथ मैप दिखाना है या नहीं. डिफ़ॉल्ट रूप से 'गलत'. |
opt_throwIfMissing |
बूलियन |
(ज़रूरी नहीं) अगर हमें ऑब्जेक्ट नहीं मिलता है, तो गड़बड़ी की जानकारी दें या नहीं. डिफ़ॉल्ट रूप से 'गलत'. |
लौटाए जाने वाले प्रॉडक्ट:
{ [key: string]: T | null | (नया (...p1: कोई भी[]) => T); } | शून्य
दिए गए टाइप के ऑब्जेक्ट का मैप या अगर कोई ऑब्जेक्ट मौजूद नहीं है, तो कोई वैल्यू नहीं.
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 2024-08-21 (UTC) को अपडेट किया गया.
[null,null,["आखिरी बार 2024-08-21 (UTC) को अपडेट किया गया."],[[["`registry.getAllItems()` retrieves a collection of registered items of a specified type, organized in a map format."],["The function allows filtering by type, case sensitivity of keys, and error handling for missing objects, with optional parameters for customization."],["Returned items can be class instances, constructor functions, or null values, depending on the registry's content and the specified type."]]],[]]