다음을 통해 공유


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
public abstract int GetSpamConfidenceLevelThreshold (
    SpamAction action,
    int defaultValue
)
public:
virtual int GetSpamConfidenceLevelThreshold (
    SpamAction action, 
    int defaultValue
) abstract
public abstract int GetSpamConfidenceLevelThreshold (
    SpamAction action, 
    int defaultValue
)
public abstract function GetSpamConfidenceLevelThreshold (
    action : SpamAction, 
    defaultValue : int
) : int

Parameters

  • action
    One of the valid SpamAction enumeration values that specifies the action to take for messages that exceed the threshold.
  • defaultValue
    The value to return if no custom threshold is specified.

Exceptions

Exception type 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.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

Windows XP Professional with Service Pack 2 (SP2), Windows Server 2003,

Target Platforms

Windows Server 2003