MetadataPackage.UpdateProperties method

Updates known metadata properties satisfying the specified predicate. The operation is recursive so it affects all nested packages as well.

public virtual int UpdateProperties(Func<MetadataProperty, bool> predicate, PropertyValue value)
Parameter Type Description
predicate Func`2 A function to test each metadata property for a condition.
value PropertyValue A new value for the filtered properties.

Return Value

The number of affected properties.


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.

Learn more

See Also