SPFileSaveBinaryParameters.ThrowOnVirusFound property
取得或設定值,指出是否找到病毒,但不是會從檔案移除,是否應擲回例外狀況。
Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'宣告
Public Property ThrowOnVirusFound As Boolean
Get
Set
'用途
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擲回例外狀況,如果找不到病毒,但未加以移除。false如果例外狀況應該不會擲回而病毒資訊應該會傳回OutVirusCheckStatus屬性和OutVirusCheckMessage屬性中。預設值是true。
請參閱
參照
SPFileSaveBinaryParameters class