Hi @Sandeep ,
As far as I know, there is no similar mechanism on the client side that can achieve your purpose. I think what you should do is to catch exceptions that may occur when downloading files.
Use a try/catch block and catch the UnauthorizedAccessException.
This won't tell you if the AV caught it, and neither should you check: that's the problem of the user and their AV.
If your program was denied access to some of the user's resource and you believe you had a legitimate reason to access that resource, inform the user with a nice text boxt and let them sort it out with their AV. You can for example suggest that your downloader be in the AV's trusted program list.
Best regards,
Xudong Peng
If the answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.