ee.Feature.copyProperties
קל לארגן דפים בעזרת אוספים
אפשר לשמור ולסווג תוכן על סמך ההעדפות שלך.
Copies metadata properties from one element to another.
שימוש | החזרות |
---|
Feature.copyProperties(source, properties, exclude) | רכיב |
ארגומנט | סוג | פרטים |
---|
זה: destination | רכיב, ברירת מחדל: null | האובייקט שהמאפיינים שלו יוחלפו. |
source | רכיב, ברירת מחדל: null | האובייקט שממנו מעתיקים את המאפיינים. |
properties | רשימה, ברירת מחדל: null | המאפיינים להעתקה. אם לא מציינים נכסים, כל הנכסים הרגילים (כלומר, לא נכסי מערכת) מועתקים. |
exclude | רשימה, ברירת מחדל: null | רשימת הנכסים שיוחרגו כשמעתיקים את כל הנכסים. אסור לציין אותו אם מציינים את המאפיין properties. |
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2025-07-26 (שעון UTC).
[null,null,["עדכון אחרון: 2025-07-26 (שעון UTC)."],[[["\u003cp\u003eCopies metadata properties from a source element to a destination element.\u003c/p\u003e\n"],["\u003cp\u003eAllows specifying specific properties to copy or exclude, offering flexibility in property transfer.\u003c/p\u003e\n"],["\u003cp\u003eIf no specific properties are provided, it copies all standard, non-system properties by default.\u003c/p\u003e\n"],["\u003cp\u003eReturns the modified destination element after the property transfer is complete.\u003c/p\u003e\n"]]],["The `copyProperties` function transfers metadata properties from a source element to a destination element. It accepts the source and destination elements as arguments. Users can specify a list of `properties` to copy or, by omitting it, copy all non-system properties. An `exclude` list allows specific properties to be skipped during the copy operation when all properties are selected. The function returns the modified destination element.\n"],null,["# ee.Feature.copyProperties\n\nCopies metadata properties from one element to another.\n\n\u003cbr /\u003e\n\n| Usage | Returns |\n|---------------------------------------------------------------------|---------|\n| Feature.copyProperties`(`*source* `, `*properties* `, `*exclude*`)` | Element |\n\n| Argument | Type | Details |\n|---------------------|------------------------|--------------------------------------------------------------------------------------------------------|\n| this: `destination` | Element, default: null | The object whose properties to override. |\n| `source` | Element, default: null | The object from which to copy the properties. |\n| `properties` | List, default: null | The properties to copy. If omitted, all ordinary (i.e. non-system) properties are copied. |\n| `exclude` | List, default: null | The list of properties to exclude when copying all properties. Must not be specified if properties is. |"]]