API Reference
Class
DmarcReportParser
Parses DMARC feedback reports from various formats.
Inheritance
- Object
- DmarcReportParser
Methods
Parse 3 overloads
public static DmarcAggregateReport Parse(String path, IList<String> validationMessages = null) #Returns:
DmarcAggregateReportParses a DMARC feedback report from the specified path.
Parameters
- path System.String
- Path to a .xml, .gz, or .zip report.
- validationMessages System.Collections.Generic.IList{System.String} = null
- Optional list collecting schema validation errors.
Returns
The parsed aggregate report.
public static DmarcAggregateReport Parse(Stream stream, String name = null, IList<String> validationMessages = null) #Returns:
DmarcAggregateReportParses a DMARC feedback report from a stream.
Parameters
- stream System.IO.Stream
- Input stream containing the report data.
- name System.String = null
- Optional name used to determine the format (.xml, .gz, .zip).
- validationMessages System.Collections.Generic.IList{System.String} = null
- Optional list collecting schema validation errors.
Returns
The parsed aggregate report.
public static DmarcAggregateReport Parse(Stream stream, String name, IList<String> validationMessages, Int64 maxUncompressedBytes) #Returns:
DmarcAggregateReportParses a DMARC feedback report from a stream with size limits.
Parameters
- stream System.IO.Stream
- Input stream containing the report data.
- name System.String
- Optional name used to determine the format (.xml, .gz, .zip).
- validationMessages System.Collections.Generic.IList{System.String}
- Optional list collecting schema validation errors.
- maxUncompressedBytes System.Int64
- Maximum uncompressed size to read (0 means unlimited).
Returns
The parsed aggregate report.
public static IEnumerable<DmarcAggregateRecord> ParseMultiple(IEnumerable<String> paths) #Returns:
IEnumerable<DmarcAggregateRecord>Parses multiple DMARC reports and returns individual records.
Parameters
- paths System.Collections.Generic.IEnumerable{System.String}
- Paths to report files.
Inherited Methods
public override Boolean Equals(Object obj) #Returns:
BooleanInherited from Object
Parameters
- obj Object