Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 4 Current »

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 -

Exemple

string filename = "file.file.txt";

byte[] attachment = { 1, 2, 3, 4, 0xBA, 0xDF, 0x00, 0x0D };

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

  • No labels