Class
RtfReadLimitException
OfficeIMO.Rtf
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
- message string
- limitSource string
- actual long
- limit long
- position int = -1
Inherited Methods
public virtual void GetObjectData(SerializationInfo info, StreamingContext context) #Inherited from Exception
Obsolete("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId = "SYSLIB0051", UrlFormat = "https://aka.ms/dotnet-warnings/{0}") EditorBrowsable(1)Parameters
- info SerializationInfo
- context StreamingContext
Properties
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 int Position { get; } #Zero-based source position, or -1 when unavailable.
Inherited Properties
public MethodBase? TargetSite { get; } #Inherited from Exception
public virtual string Message { get; } #Inherited from Exception
public virtual IDictionary Data { get; } #Inherited from Exception
public Exception? InnerException { get; } #Inherited from Exception
public virtual string? HelpLink { get; set; } #Inherited from Exception
public virtual string? Source { get; set; } #Inherited from Exception
public int HResult { get; set; } #Inherited from Exception
public virtual string? StackTrace { get; } #Inherited from Exception