Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

RtfReadLimitException

OfficeIMO.Rtf

Namespace
OfficeIMO.Rtf
Assembly
OfficeIMO.Rtf
Source revision
ba882f6b0d07 with working tree changes
Base
InvalidOperationException
Implements
ISerializable
Modifiers
sealed

Thrown when an RTF input exceeds a configured resource limit.

Inheritance

  • InvalidOperationException
  • RtfReadLimitException

Constructors

public RtfReadLimitException(string code, string message, string limitSource, long actual, long limit, int position = -1) #

Initializes a new resource-limit exception.

Parameters

code string required
message string required
limitSource string required
actual long required
limit long required
position int = -1 optional

Properties

public string Code { get; } #

Stable machine-readable limit code.

public string LimitSource { get; } #

Name of the RtfLoadOptions property that supplied the limit.

public long Actual { get; } #

Observed or declared value that exceeded the limit.

public long Limit { get; } #

Configured limit.

public int Position { get; } #

Zero-based source position, or -1 when unavailable.