Method RedactToBytesAsync
RedactToBytesAsync(byte[], string, OfficeRedactionRequest, OfficeRedactionOptions, CancellationToken)
Asynchronously redacts in-memory Office document bytes and returns the redacted bytes together with the report.
public static Task<OfficeRedactionResult> RedactToBytesAsync(byte[] data, string extension, OfficeRedactionRequest request, OfficeRedactionOptions options = null, CancellationToken cancellationToken = default)
Parameters
databyte[]extensionstringrequestOfficeRedactionRequestoptionsOfficeRedactionOptionscancellationTokenCancellationToken
Returns
RedactToBytesAsync(string, OfficeRedactionRequest, OfficeRedactionOptions, CancellationToken)
Asynchronously redacts the Office document at
inputPath and returns the redacted bytes
together with the report.
public static Task<OfficeRedactionResult> RedactToBytesAsync(string inputPath, OfficeRedactionRequest request, OfficeRedactionOptions options = null, CancellationToken cancellationToken = default)
Parameters
inputPathstringrequestOfficeRedactionRequestoptionsOfficeRedactionOptionscancellationTokenCancellationToken
Returns
RedactToBytesAsync(Attachment, OfficeRedactionRequest, OfficeRedactionOptions, CancellationToken)
Asynchronously redacts the Office document carried by
attachment and returns the redacted bytes
together with the report.
public static Task<OfficeRedactionResult> RedactToBytesAsync(Attachment attachment, OfficeRedactionRequest request, OfficeRedactionOptions options = null, CancellationToken cancellationToken = default)
Parameters
attachmentAttachmentrequestOfficeRedactionRequestoptionsOfficeRedactionOptionscancellationTokenCancellationToken