ee.Feature.copyProperties
Mit Sammlungen den Überblick behalten
Sie können Inhalte basierend auf Ihren Einstellungen speichern und kategorisieren.
Kopiert Metadateneigenschaften von einem Element in ein anderes.
Nutzung | Ausgabe |
---|
Feature.copyProperties(source, properties, exclude) | Element |
Argument | Typ | Details |
---|
So gehts: destination | Element, Standard: null | Das Objekt, dessen Eigenschaften überschrieben werden sollen. |
source | Element, Standard: null | Das Objekt, aus dem die Eigenschaften kopiert werden sollen. |
properties | Liste, Standard: null | Die zu kopierenden Eigenschaften. Wenn sie weggelassen werden, werden alle normalen (d.h. nicht systembezogenen) Attribute kopiert. |
exclude | Liste, Standard: null | Die Liste der Properties, die beim Kopieren aller Properties ausgeschlossen werden sollen. Darf nicht angegeben werden, wenn „properties“ angegeben ist. |
Sofern nicht anders angegeben, sind die Inhalte dieser Seite unter der Creative Commons Attribution 4.0 License und Codebeispiele unter der Apache 2.0 License lizenziert. Weitere Informationen finden Sie in den Websiterichtlinien von Google Developers. Java ist eine eingetragene Marke von Oracle und/oder seinen Partnern.
Zuletzt aktualisiert: 2025-07-26 (UTC).
[null,null,["Zuletzt aktualisiert: 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. |"]]