copy_to method

copy_to(self, metadata)

Copy known metadata properties from source package to destination package. The operation is recursive so it affects all nested packages as well. If an existing property its value is updated. If there is a known property missing in a destination package it is added to the package. If there is a known property missing in a source package it is not remove from destination package. If that need, use Sanitize method before.


def copy_to(self, metadata):
    ...
Parameter Type Description
metadata groupdocs.metadata.common.MetadataPackage A destination metadata package.

Remarks

If the package types do not match, an error will be returned.

Learn more | | |

Example

This example demonstrates how to copy metadata properties from source package to destination package.

copy_to(self, metadata, tags) {#groupdocs.metadata.common.MetadataPackage-System.Collections.Generic.List`1[[GroupDocs.Metadata.Tagging.PropertyTag]]}


def copy_to(self, metadata, tags):
    ...
Parameter Type Description
metadata groupdocs.metadata.common.MetadataPackage
tags System.Collections.Generic.List`1[[GroupDocs.Metadata.Tagging.PropertyTag]]

See Also