Metadata Class
Provides the main class to access metadata in all supported formats.
Inheritance Hierarchy
SystemObject
  GroupDocs.MetadataMetadata

Namespace: GroupDocs.Metadata
Assembly: GroupDocs.Metadata (in GroupDocs.Metadata.dll) Version: 21.8
Syntax
public sealed class Metadata : IDisposable

The Metadata type exposes the following members.

Constructors
  NameDescription
Public methodCode exampleMetadata(Stream)
Initializes a new instance of the Metadata class.
Public methodCode exampleMetadata(String)
Initializes a new instance of the Metadata class.
Public methodMetadata(Stream, LoadOptions)
Initializes a new instance of the Metadata class.
Public methodCode exampleMetadata(String, LoadOptions)
Initializes a new instance of the Metadata class.
Properties
  NameDescription
Public propertyFileFormat
Gets the type of the loaded file (if recognized).
Methods
  NameDescription
Public methodCode exampleAddProperties
Adds known metadata properties satisfying the specified predicate. The operation is recursive so it affects all nested packages as well.
Public methodDispose
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
Public methodEquals (Inherited from Object.)
Public methodCode exampleFindProperties
Finds the metadata properties satisfying the specified predicate. The search is recursive so it affects all nested packages as well.
Public methodCode exampleGeneratePreview
Creates preview images for specified pages.
Public methodCode exampleGetDocumentInfo
Gets common information about the loaded document.
Public methodGetHashCode (Inherited from Object.)
Public methodCode exampleGetRootPackage
Gets the root package providing access to all metadata properties extracted from the file.
Public methodGetRootPackageTRoot
Gets the root package providing access to all metadata properties extracted from the file.
Public methodGetType (Inherited from Object.)
Public methodCode exampleRemoveProperties
Removes metadata properties satisfying the specified predicate.
Public methodCode exampleSanitize
Removes writable metadata properties from all detected packages or whole packages if possible. The operation is recursive so it affects all nested packages as well.
Public methodCode exampleSave
Saves all changes made in the loaded document.
Public methodCode exampleSave(Stream)
Saves the document content into a stream.
Public methodCode exampleSave(String)
Saves the document content to the specified file.
Public methodCode exampleSetProperties
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(FuncMetadataProperty, Boolean, PropertyValue) and UpdateProperties(FuncMetadataProperty, Boolean, PropertyValue). If an existing property satisfies the predicate its value is updated. If there is a known property missing in a package that satisfies the predicate it is added to the package.
Public methodToString (Inherited from Object.)
Public methodCode exampleUpdateProperties
Updates known metadata properties satisfying the specified predicate. The operation is recursive so it affects all nested packages as well.
See Also