API Reference

Class

EmailDiagnostic

Namespace OfficeIMO.Email
Assembly OfficeIMO.Email
Modifiers sealed

Structured diagnostic produced while reading or writing an email artifact.

Inheritance

  • Object
  • EmailDiagnostic

Usage

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

Constructors

EmailDiagnostic 2 overloads
public EmailDiagnostic(String code, String message, EmailDiagnosticSeverity severity = Warning, String location = null) #

Creates a diagnostic.

Parameters

code System.String requiredposition: 0
message System.String requiredposition: 1
severity OfficeIMO.Email.EmailDiagnosticSeverity = Warning optionalposition: 2
location System.String = null optionalposition: 3
public EmailDiagnostic(String code, String message, EmailDiagnosticSeverity severity, String location, String operation, Nullable<Int64> byteOffset, String limitName, Nullable<Int64> actualValue, Nullable<Int64> maximumValue, EmailDiagnosticDisposition disposition, EmailDataLossRisk dataLossRisk, String suggestedAction, Boolean isRetryable = false) #

Creates an actionable diagnostic with machine-readable operation and recovery context.

Parameters

code System.String requiredposition: 0
message System.String requiredposition: 1
severity OfficeIMO.Email.EmailDiagnosticSeverity requiredposition: 2
location System.String requiredposition: 3
operation System.String requiredposition: 4
byteOffset System.Nullable{System.Int64} requiredposition: 5
limitName System.String requiredposition: 6
actualValue System.Nullable{System.Int64} requiredposition: 7
maximumValue System.Nullable{System.Int64} requiredposition: 8
disposition OfficeIMO.Email.EmailDiagnosticDisposition requiredposition: 9
dataLossRisk OfficeIMO.Email.EmailDataLossRisk requiredposition: 10
suggestedAction System.String requiredposition: 11
isRetryable System.Boolean = false optionalposition: 12

Methods

public static EmailDiagnostic FromLimit(EmailLimitExceededException exception, String operation, String location = null) #
Returns: EmailDiagnostic

Creates a non-sensitive actionable diagnostic for a bounded parser stop.

Parameters

exception OfficeIMO.Email.EmailLimitExceededException requiredposition: 0
operation System.String requiredposition: 1
location System.String = null optionalposition: 2

Properties

public String Code { get; } #

Stable diagnostic identifier.

public String Message { get; } #

Human-readable diagnostic message.

public EmailDiagnosticSeverity Severity { get; } #

Diagnostic severity.

public String Location { get; } #

Logical source location.

public String Operation { get; } #

Parser, writer, validation, or maintenance operation that emitted the diagnostic.

public Nullable<Int64> ByteOffset { get; } #

Source byte offset when the format exposes a stable position.

public String LimitName { get; } #

Configured resource limit associated with the diagnostic.

public Nullable<Int64> ActualValue { get; } #

Observed resource value.

public Nullable<Int64> MaximumValue { get; } #

Configured maximum resource value.

public EmailDiagnosticDisposition Disposition { get; } #

How processing continued after the condition.

public EmailDataLossRisk DataLossRisk { get; } #

Whether the condition can omit or alter user data.

public String SuggestedAction { get; } #

Safe next action for an operator or calling application.

public Boolean IsRetryable { get; } #

Whether retrying the same operation without changing input or policy can be useful.