ClearError

Description

Clears the list of error objects.

Applies to

PSConnectionClass objects

Syntax

connectionobject.ClearError( )

Argument

Description

connectionobject

A variable that contains a reference to an instance of PSConnectionClass

Returns

None

Usage

At runtime, ClearError dstroys the current error object by setting it to null.

Examples

Example 1

The following code clears the list of errors for a PSConnectionClass connection object called myconnect:

myconnect.ClearError();

See also

CreateConnection