Class XmlFileMimeMappings
This class is used to deserialize and store MIME-type-to-file-extension mappings from given XML file.
Inheritance
Namespace: Fiddler
Assembly: FiddlerCore.dll
Syntax
public class XmlFileMimeMappings : Object, IEnumerable<MimeMap>, IEnumerable
Remarks
The XML file should be in the following format:
<ArrayOfMimeMap> <MimeMap> <MimeType>mime/type</MimeType> <FileExtension>.ext</FileExtension> </MimeMap> </ArrayOfMimeMap>
Constructors
XmlFileMimeMappings(String)
Initializes new instance of Xml
Declaration
public XmlFileMimeMappings(string filePath)
Parameters
System. A relative or absolute path to the XML file. |
Methods
GetEnumerator()
Returns an enumerator that iterates through the collection.
Declaration
public IEnumerator<MimeMap> GetEnumerator()
Returns
System. An enumerator that can be used to iterate through the collection. |