IsInfected()

Check if a file is infected

Description

This method is used to check if a file is infected

Package Details

Interface

IVirusScanManager

Syntax

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

API

[POST] /api/v1/file-scan-status

Parameters

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

Returns

200 OK -

Example

string filename = "file.file.txt"; byte[] attachment = { 1, 2, 3, 4, 0xBA, 0xDF, 0x00, 0x0D }; var result = await _virusScanManager.IsInfected(filename, attachment);