Поделиться через


ErrorThreshold Property

For the latest version of Commerce Server 2007 Help, see the Microsoft Web site.

Gets or sets a value to determine the severity level that constitutes a fatal error.

Namespace:  Microsoft.CommerceServer.Catalog
Assembly:  Microsoft.CommerceServer.Catalog (in Microsoft.CommerceServer.Catalog.dll)

Syntax

'Declaration
Public Property ErrorThreshold As Integer
'Usage
Dim instance As ImportOptions
Dim value As Integer

value = instance.ErrorThreshold

instance.ErrorThreshold = value
public int ErrorThreshold { get; set; }
public:
property int ErrorThreshold {
    int get ();
    void set (int value);
}
public function get ErrorThreshold () : int
public function set ErrorThreshold (value : int)

Property Value

Type: System..::.Int32
The ErrorThreshold value.

Exceptions

Exception Condition
ArgumentException

If the ErrorThreshold value is <0, the exception with the message "Validations_InvalidThreshold" is thrown.

Remarks

The default ErrorThreshold is 100. When an error occurs during the import process the error is logged. When the error count reaches the value specified by the ErrorThreshold property, the import process stops.

Permissions

See Also

Reference

ImportOptions Class

ImportOptions Members

Microsoft.CommerceServer.Catalog Namespace