Properties Service
সেভ করা পৃষ্ঠা গুছিয়ে রাখতে 'সংগ্রহ' ব্যবহার করুন
আপনার পছন্দ অনুযায়ী কন্টেন্ট সেভ করুন ও সঠিক বিভাগে রাখুন।
বৈশিষ্ট্য
এই পরিষেবাটি স্ক্রিপ্টগুলিকে একটি স্ক্রিপ্ট, একটি স্ক্রিপ্টের একজন ব্যবহারকারী, বা একটি ডকুমেন্ট যেখানে একটি সম্পাদক অ্যাড-অন ব্যবহার করা হয়, কী-মানের জোড়া হিসাবে স্ট্রিংগুলিকে সংরক্ষণ করার অনুমতি দেয়৷ প্রতিটি ধরণের সম্পত্তি কখন ব্যবহার করবেন সে সম্পর্কে আরও তথ্যের জন্য, বৈশিষ্ট্য পরিষেবার নির্দেশিকাটি দেখুন।
ক্লাস
নাম | সংক্ষিপ্ত বিবরণ |
---|
Properties | বৈশিষ্ট্য বস্তু ব্যবহারকারী, নথি, বা স্ক্রিপ্ট বৈশিষ্ট্য অ্যাক্সেস করতে ইন্টারফেস হিসাবে কাজ করে। |
Properties Service | স্ক্রিপ্টগুলিকে একটি স্ক্রিপ্ট, একটি স্ক্রিপ্টের একজন ব্যবহারকারী, বা একটি ডকুমেন্ট যেখানে একটি অ্যাড-অন ব্যবহার করা হয়, কী-মানের জোড়ায় সহজ ডেটা সঞ্চয় করার অনুমতি দেয়৷ |
Script Properties
| স্ক্রিপ্ট প্রোপার্টিগুলি হল কী-মানের জোড়া একটি স্ক্রিপ্ট দ্বারা একটি স্থায়ী স্টোরে সংরক্ষিত। |
User Properties
| ব্যবহারকারীর বৈশিষ্ট্যগুলি ব্যবহারকারীর জন্য অনন্য কী-মানের জোড়া। |
পদ্ধতি
পদ্ধতি | রিটার্ন টাইপ | সংক্ষিপ্ত বিবরণ |
---|
get Document Properties() | Properties | একটি সম্পত্তি স্টোর পায় (শুধুমাত্র এই স্ক্রিপ্টের জন্য) যেটি সমস্ত ব্যবহারকারী খোলা নথি, স্প্রেডশীট বা ফর্মের মধ্যে অ্যাক্সেস করতে পারে। |
get Script Properties() | Properties | একটি সম্পত্তি স্টোর পায় যা সমস্ত ব্যবহারকারী অ্যাক্সেস করতে পারে, তবে শুধুমাত্র এই স্ক্রিপ্টের মধ্যে। |
get User Properties() | Properties | একটি সম্পত্তি স্টোর পায় যা শুধুমাত্র বর্তমান ব্যবহারকারী অ্যাক্সেস করতে পারে এবং শুধুমাত্র এই স্ক্রিপ্টের মধ্যে। |
অন্য কিছু উল্লেখ না করা থাকলে, এই পৃষ্ঠার কন্টেন্ট Creative Commons Attribution 4.0 License-এর অধীনে এবং কোডের নমুনাগুলি Apache 2.0 License-এর অধীনে লাইসেন্স প্রাপ্ত। আরও জানতে, Google Developers সাইট নীতি দেখুন। Java হল Oracle এবং/অথবা তার অ্যাফিলিয়েট সংস্থার রেজিস্টার্ড ট্রেডমার্ক।
2025-07-24 UTC-তে শেষবার আপডেট করা হয়েছে।
[null,null,["2025-07-24 UTC-তে শেষবার আপডেট করা হয়েছে।"],[[["\u003cp\u003eThe Properties Service allows scripts to store data as key-value pairs, with different scopes available: script, user, or document.\u003c/p\u003e\n"],["\u003cp\u003eThis service offers classes for managing properties like Properties, PropertiesService, ScriptProperties, and UserProperties, each with its own specific purpose.\u003c/p\u003e\n"],["\u003cp\u003eProperties can be manipulated with methods such as deleting, retrieving by key or in bulk, and setting new values.\u003c/p\u003e\n"],["\u003cp\u003eDifferent property stores can be accessed, including document-specific, script-wide, or user-specific stores, through the PropertiesService class.\u003c/p\u003e\n"]]],[],null,["# Properties Service\n\nProperties\n\nThis service allows scripts to store strings as key-value pairs scoped to\none script, one user of a script, or one document in which an\n[editor add-on](/gsuite/add-ons/concepts/types#editor_add-ons) is used.\nFor more information about when to use each type of property, see the\n[guide to the Properties service](/apps-script/guides/properties).\n\nClasses\n-------\n\n| Name | Brief description |\n|---------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------|\n| [Properties](/apps-script/reference/properties/properties) | The properties object acts as the interface to access user, document, or script properties. |\n| [PropertiesService](/apps-script/reference/properties/properties-service) | Allows scripts to store simple data in key-value pairs scoped to one script, one user of a script, or one document in which an add-on is used. |\n| [ScriptProperties](/apps-script/reference/properties/script-properties) | Script Properties are key-value pairs stored by a script in a persistent store. |\n| [UserProperties](/apps-script/reference/properties/user-properties) | User Properties are key-value pairs unique to a user. |\n\n[Properties](/apps-script/reference/properties/properties)\n----------------------------------------------------------\n\n### Methods\n\n| Method | Return type | Brief description |\n|--------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------|\n| [deleteAllProperties()](/apps-script/reference/properties/properties#deleteAllProperties()) | [Properties](/apps-script/reference/properties/properties) | Deletes all properties in the current `Properties` store. |\n| [deleteProperty(key)](/apps-script/reference/properties/properties#deleteProperty(String)) | [Properties](/apps-script/reference/properties/properties) | Deletes the property with the given key in the current `Properties` store. |\n| [getKeys()](/apps-script/reference/properties/properties#getKeys()) | `String[]` | Gets all keys in the current `Properties` store. |\n| [getProperties()](/apps-script/reference/properties/properties#getProperties()) | `Object` | Gets a copy of all key-value pairs in the current `Properties` store. |\n| [getProperty(key)](/apps-script/reference/properties/properties#getProperty(String)) | `String` | Gets the value associated with the given key in the current `Properties` store, or `null` if no such key exists. |\n| [setProperties(properties)](/apps-script/reference/properties/properties#setProperties(Object)) | [Properties](/apps-script/reference/properties/properties) | Sets all key-value pairs from the given object in the current `Properties` store. |\n| [setProperties(properties, deleteAllOthers)](/apps-script/reference/properties/properties#setProperties(Object,Boolean)) | [Properties](/apps-script/reference/properties/properties) | Sets all key-value pairs from the given object in the current `Properties` store, optionally deleting all other properties in the store. |\n| [setProperty(key, value)](/apps-script/reference/properties/properties#setProperty(String,String)) | [Properties](/apps-script/reference/properties/properties) | Sets the given key-value pair in the current `Properties` store. |\n\n[PropertiesService](/apps-script/reference/properties/properties-service)\n-------------------------------------------------------------------------\n\n### Methods\n\n| Method | Return type | Brief description |\n|---------------------------------------------------------------------------------------------------------|------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------|\n| [getDocumentProperties()](/apps-script/reference/properties/properties-service#getDocumentProperties()) | [Properties](/apps-script/reference/properties/properties) | Gets a property store (for this script only) that all users can access within the open document, spreadsheet, or form. |\n| [getScriptProperties()](/apps-script/reference/properties/properties-service#getScriptProperties()) | [Properties](/apps-script/reference/properties/properties) | Gets a property store that all users can access, but only within this script. |\n| [getUserProperties()](/apps-script/reference/properties/properties-service#getUserProperties()) | [Properties](/apps-script/reference/properties/properties) | Gets a property store that only the current user can access, and only within this script. |\n\n[ScriptProperties](/apps-script/reference/properties/script-properties)\n-----------------------------------------------------------------------\n\n[UserProperties](/apps-script/reference/properties/user-properties)\n-------------------------------------------------------------------"]]