共用方式為


CollectorException 類別

CollectorException 類別是所有資料收集器例外狀況的基底類別。

繼承階層

System. . :: . .Object
  System. . :: . .Exception
    Microsoft.SqlServer.Management.Common. . :: . .SqlServerManagementException
      Microsoft.SqlServer.Management.Collector..::..CollectorException

命名空間:  Microsoft.SqlServer.Management.Collector
組件:  Microsoft.SqlServer.Management.Collector (在 Microsoft.SqlServer.Management.Collector.dll 中)

語法

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

CollectorException 型別公開下列成員。

建構函式

  名稱 說明
公用方法 CollectorException() () () () 建立例外狀況的執行個體。
公用方法 CollectorException(String) 錯誤訊息。
公用方法 CollectorException(SerializationInfo, StreamingContext) 具現化 CollectorException 類別的執行個體,並傳遞 info 和 context 做為參數。
公用方法 CollectorException(String, Exception) 建立集合物件,並傳遞錯誤訊息以及造成錯誤的例外狀況。

上層

屬性

  名稱 說明
公用屬性 Data (繼承自 Exception。)
公用屬性 HelpLink 根據例外狀況取得 Microsoft SQL Server 說明網站連結。 (覆寫 Exception. . :: . .HelpLink。)
受保護的屬性 HResult (繼承自 Exception。)
公用屬性 InnerException (繼承自 Exception。)
公用屬性 Message (繼承自 Exception。)
受保護的屬性靜態成員 ProdVer 取得產品的版本。
公用屬性 Source (繼承自 Exception。)
公用屬性 StackTrace (繼承自 Exception。)
公用屬性 TargetSite (繼承自 Exception。)

上層

方法

  名稱 說明
公用方法 Equals (繼承自 Object。)
受保護的方法 Finalize (繼承自 Object。)
公用方法 GetBaseException (繼承自 Exception。)
公用方法 GetHashCode (繼承自 Object。)
公用方法 GetObjectData (繼承自 Exception。)
公用方法 GetType (繼承自 Exception。)
受保護的方法 MemberwiseClone (繼承自 Object。)
受保護的方法 SetHelpContext 根據傳遞的資源字串設定說明內容。
公用方法 ToString (繼承自 Exception。)

上層

備註

CollectorException inherits from SqlServerManagementException.

This namespace, class, or member is supported only in version 2.0 of the Microsoft .NET Framework.

執行緒安全性

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