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
| Index | Zero-based index of the cached finding to read |
|---|
Return values
| 0 | Index is negative or out of range, including when no audit findings are cached |
|---|---|
| 1 | OK |
| 2 | WARN |
| 3 | ERROR |
| 4 | INFO |
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