ee.Feature.copyProperties
Sử dụng bộ sưu tập để sắp xếp ngăn nắp các trang
Lưu và phân loại nội dung dựa trên lựa chọn ưu tiên của bạn.
Sao chép các thuộc tính siêu dữ liệu từ một phần tử sang một phần tử khác.
Cách sử dụng | Giá trị trả về |
---|
Feature.copyProperties(source, properties, exclude) | Phần tử |
Đối số | Loại | Thông tin chi tiết |
---|
this: destination | Phần tử, mặc định: rỗng | Đối tượng có các thuộc tính cần ghi đè. |
source | Phần tử, mặc định: rỗng | Đối tượng mà bạn muốn sao chép các thuộc tính. |
properties | Danh sách, mặc định: null | Các thuộc tính cần sao chép. Nếu bạn bỏ qua, tất cả các thuộc tính thông thường (tức là không phải thuộc tính hệ thống) sẽ được sao chép. |
exclude | Danh sách, mặc định: null | Danh sách các tài sản cần loại trừ khi sao chép tất cả tài sản. Không được chỉ định nếu thuộc tính là. |
Trừ phi có lưu ý khác, nội dung của trang này được cấp phép theo Giấy phép ghi nhận tác giả 4.0 của Creative Commons và các mẫu mã lập trình được cấp phép theo Giấy phép Apache 2.0. Để biết thông tin chi tiết, vui lòng tham khảo Chính sách trang web của Google Developers. Java là nhãn hiệu đã đăng ký của Oracle và/hoặc các đơn vị liên kết với Oracle.
Cập nhật lần gần đây nhất: 2025-07-26 UTC.
[null,null,["Cập nhật lần gần đây nhất: 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. |"]]