Share via


DtsError Class

Contains information about an error that occurred during execution. This class cannot be inherited.

Inheritance Hierarchy

System.Object
  Microsoft.SqlServer.Dts.Runtime.DtsObject
    Microsoft.SqlServer.Dts.Runtime.DtsError

Namespace:  Microsoft.SqlServer.Dts.Runtime
Assembly:  Microsoft.SqlServer.ManagedDTS (in Microsoft.SqlServer.ManagedDTS.dll)

Syntax

'Declaration
Public NotInheritable Class DtsError _
    Inherits DtsObject
'Usage
Dim instance As DtsError
public sealed class DtsError : DtsObject
public ref class DtsError sealed : public DtsObject
[<SealedAttribute>]
type DtsError =  
    class 
        inherit DtsObject 
    end
public final class DtsError extends DtsObject

The DtsError type exposes the following members.

Properties

  Name Description
Public property Description Gets or sets a text description for the error.
Public property ErrorCode Gets or sets an error code that identifies the error.
Public property HelpContext Gets or sets the Help context ID.
Public property HelpFile Gets or sets the name of the Help file.
Public property IDOfInterfaceWithError Gets or sets the name of the interface that raised the error.
Public property Source Gets or sets the identifier of the object that caused the event.
Public property SubComponent Gets or sets the subcomponent that raised the error.
Public property TimeStamp Returns the timestamp for when the error occurred. This value is read-only.

Top

Methods

  Name Description
Public method Equals Determines whether two object instances are equal. (Inherited from DtsObject.)
Public method GetHashCode Returns the hash code for this instance. (Inherited from DtsObject.)
Public method GetType (Inherited from Object.)
Public method ToString (Inherited from Object.)

Top

Remarks

The collection of errors that occur is found in the DtsErrors collection. This class inherits from DtsObject.

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.

See Also

Reference

Microsoft.SqlServer.Dts.Runtime Namespace