FormatBase Class
Represents base abstraction for supported file formats.
Inheritance Hierarchy

Namespace: GroupDocs.Metadata.Formats
Assembly: GroupDocs.Metadata (in GroupDocs.Metadata.dll) Version: 19.5
public abstract class FormatBase : IDisposable

The FormatBase type exposes the following members.

Public propertyItem
Gets the MetadataProperty with the specified key.
Public propertyMIMEType
Gets the MIME type of the loaded file.
Public propertyType
Gets the type of the loaded file.
Public methodCleanMetadata
Removes writable metadata properties associated with the file.
Public methodDispose
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
Protected methodDispose(Boolean)
Releases unmanaged and optionally managed resources.
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetMetadata
Gets an array of metadata packages extracted from the file.
Public methodGetType
Gets the type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodCode exampleSave
Saves all changes made in the loaded file.
Public methodCode exampleSave(Stream)
Saves the file content into a stream.
Public methodCode exampleSave(String)
Saves the file content to the specified file.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
This example demonstrates how to load a file of any supported format
// Recognize the format by the file signature
using (FormatBase format = FormatFactory.RecognizeFormat(@"D:\input.doc"))
    if (format != null)
        // ...
See Also
Inheritance Hierarchy
    GroupDocs.Metadata.Formats.DocumentDocumentFormatT, TK, TDi