संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
blockly > serialization > variables > VariableSerializer > save
serialization.variables.VariableSerializer.save() तरीका
दिए गए फ़ाइल फ़ोल्डर के वैरिएबल को सीरियलाइज़ करता है.
हस्ताक्षर:
save(workspace: Workspace): IVariableState[] | null;
पैरामीटर
पैरामीटर |
टाइप |
ब्यौरा |
कार्यस्थान |
Workspace |
वैरिएबल सेव करने के लिए वर्कस्पेस. |
लौटाए जाने वाले प्रॉडक्ट:
IVariableState[] | null
फ़ाइल फ़ोल्डर के वैरिएबल की स्थिति या कोई वैरिएबल न होने पर शून्य.
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 2025-07-25 (UTC) को अपडेट किया गया.
[[["समझने में आसान है","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-25 (UTC) को अपडेट किया गया."],[],["The `VariableSerializer.save()` method serializes a workspace's variables. It accepts a `Workspace` object as input and returns an array of `State` objects representing the serialized variables. If the workspace contains no variables, the method returns `null`. This method's core action is to capture the state of variables within a specified workspace and represent them in a serializable format.\n"]]