Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Scan files

Description

This method is used to scan files.

Package Details

Interface

IVirusScanManager

Syntax

IVirusScanManager.ScanFile(string filename, byte[] attachment);

API

[POST] /api/v1/file-scan

Parameters

string filename: file name
byte[] attachment: file data

Returns

200 OK - FileScanResult

Example

Code Block
languagec#
string filename = "file.file.txt";
byte[] attachment = { 1, 2, 3, 4, 0xBA, 0xDF, 0x00, 0x0D };

var result = await _virusScanManager.ScanFile(filename, attachment);