MetadataPackageAddProperties Method |
Adds known metadata properties satisfying the specified predicate.
The operation is recursive so it affects all nested packages as well.
Namespace: GroupDocs.Metadata.CommonAssembly: GroupDocs.Metadata (in GroupDocs.Metadata.dll) Version: 21.8
Syntaxpublic int AddProperties(
Func<MetadataProperty, bool> predicate,
PropertyValue value
)
Public Function AddProperties (
predicate As Func(Of MetadataProperty, Boolean),
value As PropertyValue
) As Integer
public:
int AddProperties(
Func<MetadataProperty^, bool>^ predicate,
PropertyValue^ value
)
member AddProperties :
predicate : Func<MetadataProperty, bool> *
value : PropertyValue -> int
Parameters
- predicate
- Type: GroupDocs.Metadata.CommonFuncMetadataProperty, Boolean
A function to test each metadata property for a condition. - value
- Type: GroupDocs.Metadata.CommonPropertyValue
A value for the picked properties.
Return Value
Type:
Int32The number of affected properties.
Remarks
See Also