GetAuditFindingSeverity

Diagnostics

Description

Returns the severity code of one finding produced by the most recent structural audit call

Syntax

Delphi

Function GetAuditFindingSeverity(Index: Integer): Integer;

Parameters

IndexZero-based index of the cached finding to read

Return values

0Index is negative or out of range, including when no audit findings are cached
1OK
2WARN
3ERROR
4INFO

Remarks

Use GetAuditFindingCount to establish the valid range from 0 through count minus 1; every Audit* call replaces the previously cached findings

Example

if PDF.GetAuditFindingSeverity(I)= 3 then RaiseError(PDF.GetAuditFindingDetail(I));

See also

GetAuditFindingCount, GetAuditFindingItem, GetAuditFindingDetail, AuditPageTree