共用方式為


DtsException 類別

Defines a generic exception class that, depending on the error code returned, creates a class specific to the type of exception that occurred.

繼承階層

System. . :: . .Object
  System. . :: . .Exception
    Microsoft.SqlServer.Dts.Runtime..::..DtsException
      其他...

命名空間:  Microsoft.SqlServer.Dts.Runtime
組件:  Microsoft.SqlServer.ManagedDTS (在 Microsoft.SqlServer.ManagedDTS.dll 中)

語法

'宣告
<SerializableAttribute> _
Public Class DtsException _
    Inherits Exception
'用途
Dim instance As DtsException
[SerializableAttribute]
public class DtsException : Exception
[SerializableAttribute]
public ref class DtsException : public Exception
[<SerializableAttribute>]
type DtsException =  
    class
        inherit Exception
    end
public class DtsException extends Exception

DtsException 型別公開下列成員。

屬性

  名稱 說明
公用屬性 Data (繼承自 Exception。)
公用屬性 ErrorCode Gets the error code that creates the appropriate exception class. This field is read-only.
公用屬性 HelpLink (繼承自 Exception。)
受保護的屬性 HResult (繼承自 Exception。)
公用屬性 InnerException (繼承自 Exception。)
公用屬性 Message (繼承自 Exception。)
公用屬性 Source (繼承自 Exception。)
公用屬性 StackTrace (繼承自 Exception。)
公用屬性 TargetSite (繼承自 Exception。)

上層

方法

  名稱 說明
公用方法 Equals (繼承自 Object。)
受保護的方法 Finalize (繼承自 Object。)
公用方法 GetBaseException (繼承自 Exception。)
公用方法 GetHashCode (繼承自 Object。)
公用方法 GetObjectData (繼承自 Exception。)
公用方法 GetType (繼承自 Exception。)
受保護的方法 MemberwiseClone (繼承自 Object。)
公用方法 ToString (繼承自 Exception。)

上層

備註

Depending on the error code, one of the classes that derive from DtsException is created. For example, if the error code returned is 0x8, the DtsScriptingException class is created. This allows you to write code for the different types of exception classes that are returned, instead of coding against the generic DtsException. For a list of the classes that are created, see the link of Derived Classes below.

執行緒安全性

這個型別的任何公用 static (在 Visual Basic 中為 Shared) 成員都是執行緒安全的。並不是所有的執行個體成員都保證可以用於所有的執行緒。

繼承階層

System. . :: . .Object
  System. . :: . .Exception
    Microsoft.SqlServer.Dts.Runtime..::..DtsException
      Microsoft.SqlServer.Dts.Runtime. . :: . .DtsComException
      Microsoft.SqlServer.Dts.Runtime. . :: . .DtsComponentException
      Microsoft.SqlServer.Dts.Runtime. . :: . .DtsConnectionException
      Microsoft.SqlServer.Dts.Runtime. . :: . .DtsCouldNotCreateManagedConnectionException
      Microsoft.SqlServer.Dts.Runtime. . :: . .DtsCouldNotCreateManagedForEachEnumeratorException
      Microsoft.SqlServer.Dts.Runtime. . :: . .DtsExponentTooLargeException
      Microsoft.SqlServer.Dts.Runtime. . :: . .DtsGenericException
      Microsoft.SqlServer.Dts.Runtime. . :: . .DtsInvalidBreakpointSiteException
      Microsoft.SqlServer.Dts.Runtime. . :: . .DtsNoConnectionAssignedException
      Microsoft.SqlServer.Dts.Runtime. . :: . .DtsNoForEachEnumAssignedException
      Microsoft.SqlServer.Dts.Runtime. . :: . .DtsNoLogProviderAssignedException
      Microsoft.SqlServer.Dts.Runtime. . :: . .DtsNoObjectAssignedException
      Microsoft.SqlServer.Dts.Runtime. . :: . .DtsNotAConnectionException
      Microsoft.SqlServer.Dts.Runtime. . :: . .DtsNotAForEachEnumException
      Microsoft.SqlServer.Dts.Runtime. . :: . .DtsNotALogProviderException
      Microsoft.SqlServer.Dts.Runtime. . :: . .DtsNotAManagedEnumeratorException
      Microsoft.SqlServer.Dts.Runtime. . :: . .DtsNoTaskAssignedException
      Microsoft.SqlServer.Dts.Runtime. . :: . .DtsNotATaskException
      Microsoft.SqlServer.Dts.Runtime. . :: . .DtsPipelineException
      Microsoft.SqlServer.Dts.Runtime. . :: . .DtsRuntimeException
      Microsoft.SqlServer.Dts.Runtime. . :: . .DtsScriptingException
      Microsoft.SqlServer.Dts.Runtime. . :: . .DtsSqlException
      Microsoft.SqlServer.Dts.Runtime. . :: . .DtsTaskException
      Microsoft.SqlServer.Dts.Runtime. . :: . .DtsToolsException