সেভ করা পৃষ্ঠা গুছিয়ে রাখতে 'সংগ্রহ' ব্যবহার করুন আপনার পছন্দ অনুযায়ী কন্টেন্ট সেভ করুন ও সঠিক বিভাগে রাখুন।
ব্যবহারকারীর বৈশিষ্ট্য
অবচয়। এই শ্রেণীটি বাতিল করা হয়েছে এবং নতুন স্ক্রিপ্টে ব্যবহার করা উচিত নয়।
ব্যবহারকারীর বৈশিষ্ট্যগুলি ব্যবহারকারীর জন্য অনন্য কী-মানের জোড়া। ব্যবহারকারীর বৈশিষ্ট্য প্রতি ব্যবহারকারীর স্কোপ করা হয়; ব্যবহারকারীর পরিচয়ের অধীনে চলমান যে কোনো স্ক্রিপ্ট শুধুমাত্র সেই ব্যবহারকারীর জন্য ব্যবহারকারীর বৈশিষ্ট্য অ্যাক্সেস করতে পারে।
অবচয়। এই ফাংশনটি বাতিল করা হয়েছে এবং নতুন স্ক্রিপ্টগুলিতে ব্যবহার করা উচিত নয়৷
সমস্ত উপলব্ধ কীগুলি পান৷
প্রত্যাবর্তন
String[]
get Properties()
অবচয়। এই ফাংশনটি বাতিল করা হয়েছে এবং নতুন স্ক্রিপ্টগুলিতে ব্যবহার করা উচিত নয়৷
একযোগে উপলব্ধ বৈশিষ্ট্য সব পান.
এটি একটি অনুলিপি দেয়, একটি লাইভ ভিউ নয়, তাই প্রত্যাবর্তিত বস্তুর বৈশিষ্ট্যগুলি পরিবর্তন করা তাদের স্টোরেজ এবং এর বিপরীতে আপডেট করবে না।
UserProperties.setProperties({"cow":"moo","sheep":"baa","chicken":"cluck"});// Logs "A cow goes: moo"Logger.log("A cow goes: %s",UserProperties.getProperty("cow"));// This makes a copy. Any changes that happen here will not// be written back to properties.varanimalSounds=UserProperties.getProperties();// Logs:// A chicken goes cluck!// A cow goes moo!// A sheep goes baa!for(varkindinanimalSounds){Logger.log("A %s goes %s!",kind,animalSounds[kind]);}
প্রত্যাবর্তন
Object — কী-মান জোড়া ধারণকারী বৈশিষ্ট্যগুলির একটি অনুলিপি
get Property(key)
অবচয়। এই ফাংশনটি বাতিল করা হয়েছে এবং নতুন স্ক্রিপ্টগুলিতে ব্যবহার করা উচিত নয়৷
প্রদত্ত কী-এর সাথে সম্পর্কিত মান প্রদান করে, অথবা যদি এমন কোনো মান না থাকে তাহলে শূন্য।
[[["সহজে বোঝা যায়","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-24 UTC-তে শেষবার আপডেট করা হয়েছে।"],[[["\u003cp\u003e\u003ccode\u003eUserProperties\u003c/code\u003e is deprecated and should not be used in new scripts.\u003c/p\u003e\n"],["\u003cp\u003eUser Properties are key-value pairs unique to a user, accessible only by scripts running under that user's identity.\u003c/p\u003e\n"],["\u003cp\u003eAll methods within \u003ccode\u003eUserProperties\u003c/code\u003e are deprecated, including those for setting, getting, and deleting properties.\u003c/p\u003e\n"],["\u003cp\u003eDespite being deprecated, \u003ccode\u003eUserProperties\u003c/code\u003e provides functionalities like \u003ccode\u003egetProperties()\u003c/code\u003e which returns a copy of the properties, and \u003ccode\u003edeleteAllProperties()\u003c/code\u003e to remove all properties.\u003c/p\u003e\n"],["\u003cp\u003eDevelopers should avoid using \u003ccode\u003eUserProperties\u003c/code\u003e and explore alternative solutions for managing user-specific data in new scripts.\u003c/p\u003e\n"]]],[],null,["UserProperties\n\n\n**Deprecated.** This class is deprecated and should not be used in new scripts.\n\nUser Properties are key-value pairs unique to a user. User Properties are scoped per user; any\nscript running under the identity of a user can access User Properties for that user only. \n\nDeprecated methods\n\n| Method | Return type | Brief description |\n|------------------------------------------------------------------------------|---------------------|----------------------------------------------------------------------------------------|\n| [deleteAllProperties()](#deleteAllProperties()) | [UserProperties](#) | Deletes all properties. |\n| [deleteProperty(key)](#deleteProperty(String)) | [UserProperties](#) | Deletes the property with the given key. |\n| [getKeys()](#getKeys()) | `String[]` | Get all of the available keys. |\n| [getProperties()](#getProperties()) | `Object` | Get all of the available properties at once. |\n| [getProperty(key)](#getProperty(String)) | `String` | Returns the value associated with the provided key, or null if there is no such value. |\n| [setProperties(properties)](#setProperties(Object)) | [UserProperties](#) | Bulk-sets all the properties drawn from the given object. |\n| [setProperties(properties, deleteAllOthers)](#setProperties(Object,Boolean)) | [UserProperties](#) | Bulk-sets all the properties drawn from the given object. |\n| [setProperty(key, value)](#setProperty(String,String)) | [UserProperties](#) | Persists the specified in value with the provided key. |\n\nDeprecated methods \n\n`delete``All``Properties()` \n\n**Deprecated.** This function is deprecated and should not be used in new scripts.\n\nDeletes all properties.\n\n```javascript\nUserProperties.deleteAllProperties();\n```\n\nReturn\n\n\n[UserProperties](#) --- this object, for chaining\n\nSee also\n\n- [deleteProperty(key)](#deleteProperty(String))\n\n*** ** * ** ***\n\n`delete``Property(key)` \n\n**Deprecated.** This function is deprecated and should not be used in new scripts.\n\nDeletes the property with the given key.\n\n```javascript\nUserProperties.deleteProperty('special');\n```\n\nParameters\n\n| Name | Type | Description |\n|-------|----------|----------------------------|\n| `key` | `String` | key for property to delete |\n\nReturn\n\n\n[UserProperties](#) --- this object, for chaining\n\nSee also\n\n- [deleteAllProperties()](#deleteAllProperties())\n\n*** ** * ** ***\n\n`get``Keys()` \n\n**Deprecated.** This function is deprecated and should not be used in new scripts.\n\nGet all of the available keys.\n\nReturn\n\n\n`String[]`\n\n*** ** * ** ***\n\n`get``Properties()` \n\n**Deprecated.** This function is deprecated and should not be used in new scripts.\n\nGet all of the available properties at once.\n\nThis gives a copy, not a live view, so changing the properties on the returned object won't\nupdate them in storage and vice versa.\n\n```javascript\nUserProperties.setProperties({\n \"cow\" : \"moo\",\n \"sheep\" : \"baa\",\n \"chicken\" : \"cluck\"\n});\n\n// Logs \"A cow goes: moo\"\nLogger.log(\"A cow goes: %s\", UserProperties.getProperty(\"cow\"));\n\n// This makes a copy. Any changes that happen here will not\n// be written back to properties.\nvar animalSounds = UserProperties.getProperties();\n\n// Logs:\n// A chicken goes cluck!\n// A cow goes moo!\n// A sheep goes baa!\nfor(var kind in animalSounds) {\n Logger.log(\"A %s goes %s!\", kind, animalSounds[kind]);\n}\n```\n\nReturn\n\n\n`Object` --- a copy of the properties containing key-value pairs\n\n*** ** * ** ***\n\n`get``Property(key)` \n\n**Deprecated.** This function is deprecated and should not be used in new scripts.\n\nReturns the value associated with the provided key, or null if there is no such value.\n\n```javascript\nconst specialValue = UserProperties.getProperty('special');\n```\n\nParameters\n\n| Name | Type | Description |\n|-------|----------|-------------------------------|\n| `key` | `String` | key for the value to retrieve |\n\nReturn\n\n\n`String` --- the value associated with the key\n\nSee also\n\n- [setProperty(key, value)](#setProperty(String,String))\n\n*** ** * ** ***\n\n`set``Properties(properties)` \n\n**Deprecated.** This function is deprecated and should not be used in new scripts.\n\nBulk-sets all the properties drawn from the given object.\n\n```javascript\nUserProperties.setProperties({special: 'sauce', 'meaning': 42});\n```\n\nParameters\n\n| Name | Type | Description |\n|--------------|----------|---------------------------------------------|\n| `properties` | `Object` | an object containing the properties to set. |\n\nReturn\n\n\n[UserProperties](#) --- this object, for chaining\n\nSee also\n\n- [setProperty(key, value)](#setProperty(String,String))\n\n*** ** * ** ***\n\n`set``Properties(properties, deleteAllOthers)` \n\n**Deprecated.** This function is deprecated and should not be used in new scripts.\n\nBulk-sets all the properties drawn from the given object.\n\n```javascript\n// This deletes all other properties\nUserProperties.setProperties({special: 'sauce', 'meaning': 42}, true);\n```\n\nParameters\n\n| Name | Type | Description |\n|-----------------------|-----------|---------------------------------------------|\n| `properties` | `Object` | an object containing the properties to set. |\n| `delete``All``Others` | `Boolean` | whether to delete all existing properties. |\n\nReturn\n\n\n[UserProperties](#) --- this object, for chaining\n\nSee also\n\n- [setProperty(key, value)](#setProperty(String,String))\n\n*** ** * ** ***\n\n`set``Property(key, value)` \n\n**Deprecated.** This function is deprecated and should not be used in new scripts.\n\nPersists the specified in value with the provided key. Any existing value associated with this\nkey will be overwritten.\n\n```javascript\nUserProperties.setProperty('special', 'sauce');\n```\n\nParameters\n\n| Name | Type | Description |\n|---------|----------|---------------------------------|\n| `key` | `String` | key for property |\n| `value` | `String` | value to associate with the key |\n\nReturn\n\n\n[UserProperties](#) --- this object, for chaining\n\nSee also\n\n- [getProperty(key)](#getProperty(String))"]]