PDFNET-47256 How to detect AIP-protecyed files

Release notes for Aspose.Pdf 212.3 state new feature was implemented: PDFNET-47256 Public expose of property to detect Azure Information Protection.

I did not find any documentation re this change.

Could you please share a link with relevant documentation or code sample that illustrates new API (ability to detect whether file is AIP-protected).

@oleksii.diachok
The ticket contains the following explanations:

Code snippet to get access to encrypted payload:

string inputFile = @"c:\pdf.pdf";
Document document = new Document(inputFile);
if (document.EmbeddedFiles[1].AFRelationship == AFRelationship.EncryptedPayload)
{
    if (document.EmbeddedFiles[1].EncryptedPayload != null)
    {
        // document.EmbeddedFiles[1].EncryptedPayload.Type == "EncryptedPayload"
        // document.EmbeddedFiles[1].EncryptedPayload.Subtype == "MicrosoftIRMServices"
        // document.EmbeddedFiles[1].EncryptedPayload.Version == "2"
    }
}