update_properties method

update_properties

Updates known metadata properties satisfying the specified predicate, recursively affecting all nested packages.

Please note that GroupDocs.Metadata implicitly checks the type of each filtered property. It’s impossible to update a property with a value having an inappropriate type.

def update_properties(self, predicate, value):
    ...
Parameter Type Description
predicate Func[MetadataProperty, bool] A function to test each metadata property for a condition.
value PropertyValue A new value for the filtered properties.

Returns: int: The number of affected properties.

See Also