FormatBase Class
Represents base abstraction for supported file formats.
Inheritance Hierarchy
SystemObject
  GroupDocs.Metadata.FormatsFormatBase
    More...

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

The FormatBase type exposes the following members.

Properties
  NameDescription
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.
Methods
  NameDescription
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.)
Examples
This example demonstrates how to load a file of any supported format
C#
// Recognize the format by the file signature
using (FormatBase format = FormatFactory.RecognizeFormat(@"D:\input.doc"))
{
    if (format != null)
    {
        // ...
    }
}
See Also
Inheritance Hierarchy
SystemObject
  GroupDocs.Metadata.FormatsFormatBase
    GroupDocs.Metadata.Formats.ArchiveZipFormat
    GroupDocs.Metadata.Formats.AudioMp3Format
    GroupDocs.Metadata.Formats.BusinessCardVCardFormat
    GroupDocs.Metadata.Formats.CadDwgFormat
    GroupDocs.Metadata.Formats.CadDxfFormat
    GroupDocs.Metadata.Formats.DocumentDocumentFormatT, TK, TDi
    GroupDocs.Metadata.Formats.DocumentOneNoteFormat
    GroupDocs.Metadata.Formats.EbookEpubFormat
    GroupDocs.Metadata.Formats.EmailEmlFormat
    GroupDocs.Metadata.Formats.EmailOutlookMessage
    GroupDocs.Metadata.Formats.FontOpenTypeFormat
    GroupDocs.Metadata.Formats.ImageImageFormat
    GroupDocs.Metadata.Formats.ProjectMppFormat
    GroupDocs.Metadata.FormatsRiffFormat
    GroupDocs.Metadata.Formats.TorrentTorrentFormat
    GroupDocs.Metadata.Formats.VideoAsfFormat
    GroupDocs.Metadata.Formats.VideoFlvFormat
    GroupDocs.Metadata.Formats.VideoMatroskaFormat
    GroupDocs.Metadata.Formats.VideoMovFormat