Gets a metadata package containing inspection results for the document. The package contains information about document parts that can be considered as metadata in some cases.
Sets known metadata properties satisfying the specified predicate. The operation is recursive so it affects all nested packages as well. This method is a combination of AddProperties and UpdateProperties. If an existing property satisfies the predicate its value is updated. If there is a known property missing in the package that satisfies the predicate it is added to the package.
This code snippet demonstrates how to extract built-in metadata properties from a spreadsheet.
/// using (Metadata metadata = new Metadata(Constants.InputXlsx)){varroot=metadata.GetRootPackage<SpreadsheetRootPackage>();Console.WriteLine(root.DocumentProperties.Author);Console.WriteLine(root.DocumentProperties.CreatedTime);Console.WriteLine(root.DocumentProperties.Company);Console.WriteLine(root.DocumentProperties.Category);Console.WriteLine(root.DocumentProperties.Keywords);Console.WriteLine(root.DocumentProperties.Language);Console.WriteLine(root.DocumentProperties.ContentType);// ... }