SPFileSaveBinaryParameters.ThrowOnVirusFound property
Gets or sets a value that indicates whether an exception should be thrown if a virus is found but not removed from the file.
Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'Declaration
Public Property ThrowOnVirusFound As Boolean
Get
Set
'Usage
Dim instance As SPFileSaveBinaryParameters
Dim value As Boolean
value = instance.ThrowOnVirusFound
instance.ThrowOnVirusFound = value
public bool ThrowOnVirusFound { get; set; }
Property value
Type: System.Boolean
true to throw an exception if a virus was found but was not removed; false if an exception should not be thrown but instead virus information should be returned in the OutVirusCheckStatus property and the OutVirusCheckMessage property. The default value is true.
See also
Reference
SPFileSaveBinaryParameters class