Method Add
- Namespace
- IntentSharp.Documents
- Assembly
- IntentSharp.dll
Add(IDocumentFormat)
Registers a format for its extensions. A format whose name is already registered (compared ignoring case) is
ignored, so two packages may both add "yaml".
public void Add(IDocumentFormat format)
Parameters
formatIDocumentFormatThe format to register.
Exceptions
- ArgumentNullException
formatis null.- ArgumentException
The format's name is blank, it lists no extension, an extension is blank or does not start with a dot, or an extension is already registered to a format with another name. Nothing is registered.