공지사항:
2025년 4월 15일 전에 Earth Engine 사용을 위해 등록된 모든 비상업용 프로젝트는 Earth Engine 액세스를 유지하기 위해
비상업용 자격 요건을 인증해야 합니다.
ui.data.ActiveDictionary.set
컬렉션을 사용해 정리하기
내 환경설정을 기준으로 콘텐츠를 저장하고 분류하세요.
지정된 속성의 값을 설정합니다. 제공된 키가 객체에서 지원되지 않으면 오류가 발생합니다. 생성자의 매개변수를 확인하여 설정할 수 있는 속성을 확인합니다.
이 ui.data.ActiveDictionary를 반환합니다.
사용 | 반환 값 |
---|
ActiveDictionary.set(keyOrDict, value) | ui.data.ActiveDictionary |
인수 | 유형 | 세부정보 |
---|
다음과 같은 경우: ui.data.activedictionary | ui.data.ActiveDictionary | ui.data.ActiveDictionary 인스턴스입니다. |
keyOrDict | 객체|문자열 | 설정할 속성의 키 또는 객체에 설정할 키/값 쌍의 사전입니다. |
value | 객체, 선택사항 | 속성의 새 값입니다. 첫 번째 인수가 키 문자열인 경우 필요합니다. |
달리 명시되지 않는 한 이 페이지의 콘텐츠에는 Creative Commons Attribution 4.0 라이선스에 따라 라이선스가 부여되며, 코드 샘플에는 Apache 2.0 라이선스에 따라 라이선스가 부여됩니다. 자세한 내용은 Google Developers 사이트 정책을 참조하세요. 자바는 Oracle 및/또는 Oracle 계열사의 등록 상표입니다.
최종 업데이트: 2025-07-26(UTC)
[null,null,["최종 업데이트: 2025-07-26(UTC)"],[[["\u003cp\u003e\u003ccode\u003eActiveDictionary.set()\u003c/code\u003e allows modification of properties within a \u003ccode\u003eui.data.ActiveDictionary\u003c/code\u003e object.\u003c/p\u003e\n"],["\u003cp\u003eIt accepts either a key-value pair or a dictionary of key-value pairs to update the object's properties.\u003c/p\u003e\n"],["\u003cp\u003eAn error is thrown if an unsupported key is provided, refer to the constructor's parameters for valid keys.\u003c/p\u003e\n"],["\u003cp\u003eThe method returns the updated \u003ccode\u003eui.data.ActiveDictionary\u003c/code\u003e instance for chaining purposes.\u003c/p\u003e\n"]]],["The `ActiveDictionary.set` method sets a property's value or multiple properties from a dictionary. It accepts a key (string) and a value, or a dictionary of key-value pairs. If the provided key is invalid, an error is thrown. When setting a single property, a value must be provided. The method returns the `ui.data.ActiveDictionary` instance, allowing for method chaining. The `keyOrDict` argument determines the type of operation to perform, either setting one value or several.\n"],null,["# ui.data.ActiveDictionary.set\n\n\u003cbr /\u003e\n\nSets the value of a given property. Throws an error if the key provided is not supported by the object. Look at the constructor's parameters to see which properties can be set.\n\n\u003cbr /\u003e\n\nReturns this ui.data.ActiveDictionary.\n\n| Usage | Returns |\n|----------------------------------------------|--------------------------|\n| ActiveDictionary.set`(keyOrDict, `*value*`)` | ui.data.ActiveDictionary |\n\n| Argument | Type | Details |\n|----------------------------------|--------------------------|------------------------------------------------------------------------------------------------|\n| this: `ui.data.activedictionary` | ui.data.ActiveDictionary | The ui.data.ActiveDictionary instance. |\n| `keyOrDict` | Object\\|String | Either the key of the property to set or a dictionary of key/value pairs to set on the object. |\n| `value` | Object, optional | The property's new value. This is required when the first argument is a key string. |"]]