SPFileCollectionAddParameters.ThrowOnVirusFound Property

Gets or sets a value that indicates whether an exception should be thrown if a virus is found but not removed.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online

Syntax

'Declaration
Public Property ThrowOnVirusFound As Boolean
    Get
    Set
'Usage
Dim instance As SPFileCollectionAddParameters
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

SPFileCollectionAddParameters Class

SPFileCollectionAddParameters Members

Microsoft.SharePoint Namespace