AddressBookEntry.GetSpamConfidenceLevelThreshold Method
When overridden in a derived class, the GetSpamConfidenceLevelThreshold method returns the Spam Confidence Level (SCL) threshold for the recipient for the action that is specified by the action parameter.
Namespace: Microsoft.Exchange.Data.Transport
Assembly: Microsoft.Exchange.Data.Transport (in Microsoft.Exchange.Data.Transport.dll)
Syntax
'Declaration
Public MustOverride Function GetSpamConfidenceLevelThreshold ( _
action As SpamAction, _
defaultValue As Integer _
) As Integer
'Usage
Dim instance As AddressBookEntry
Dim action As SpamAction
Dim defaultValue As Integer
Dim returnValue As Integer
returnValue = instance.GetSpamConfidenceLevelThreshold(action, _
defaultValue)
public abstract int GetSpamConfidenceLevelThreshold(
SpamAction action,
int defaultValue
)
Parameters
- action
Type: Microsoft.Exchange.Data.Transport.SpamAction
One of the valid SpamAction enumeration values that specifies the action to take for messages that exceed the threshold.
- defaultValue
Type: System.Int32
The value to return if no custom threshold is specified.
Return Value
Type: System.Int32
Exceptions
Exception | Condition |
---|---|
[System.ArgumentOutOfRangeException] | The action parameter is not one of the valid SpamAction enumeration values or the defaultValue parameter is outside the range of 0-9 and is not Int.MaxValue. |