SqlServerManagementException 類別是在伺服器連接上發生 SQL Server 管理錯誤時引發的例外狀況。
繼承階層
Object
Exception
Microsoft.SqlServer.Management.Common.SqlServerManagementException
其他...
命名空間: Microsoft.SqlServer.Management.Common
組件: Microsoft.SqlServer.ConnectionInfo (在 Microsoft.SqlServer.ConnectionInfo.dll 中)
語法
'宣告
Public Class SqlServerManagementException _
Inherits Exception
'用途
Dim instance As SqlServerManagementException
public class SqlServerManagementException : Exception
public ref class SqlServerManagementException : public Exception
type SqlServerManagementException =
class
inherit Exception
end
public class SqlServerManagementException extends Exception
SqlServerManagementException 型別公開下列成員。
建構函式
| 名稱 | 說明 | |
|---|---|---|
![]() |
SqlServerManagementException() | 初始化 SqlServerManagementException 類別的新執行個體。 |
![]() |
SqlServerManagementException(String) | 初始化具有指定的訊息文字之 SqlServerManagementException 類別的新執行個體。 |
![]() |
SqlServerManagementException(SerializationInfo, StreamingContext) | 初始化具有指定的序列化資訊和資料流內容之 SqlServerManagementException 類別的新執行個體。 |
![]() |
SqlServerManagementException(String, Exception) | 初始化具有指定的訊息文字和內部例外狀況之 SqlServerManagementException 類別的新執行個體。 |
回到頁首
屬性
| 名稱 | 說明 | |
|---|---|---|
![]() |
Data | (繼承自 Exception。) |
![]() |
HelpLink | (繼承自 Exception。) |
![]() |
HResult | (繼承自 Exception。) |
![]() |
InnerException | (繼承自 Exception。) |
![]() |
Message | (繼承自 Exception。) |
![]() ![]() |
ProductName | 取得造成例外狀況的產品名稱。 |
![]() |
Source | (繼承自 Exception。) |
![]() |
StackTrace | (繼承自 Exception。) |
![]() |
TargetSite | (繼承自 Exception。) |
回到頁首
方法
| 名稱 | 說明 | |
|---|---|---|
![]() |
Equals | (繼承自 Object。) |
![]() |
Finalize | (繼承自 Object。) |
![]() |
GetBaseException | (繼承自 Exception。) |
![]() |
GetHashCode | (繼承自 Object。) |
![]() |
GetObjectData | 安全性關鍵。 (繼承自 Exception。) |
![]() |
GetType | (繼承自 Exception。) |
![]() |
MemberwiseClone | (繼承自 Object。) |
![]() |
ToString | (繼承自 Exception。) |
回到頁首
事件
| 名稱 | 說明 | |
|---|---|---|
![]() |
SerializeObjectState | (繼承自 Exception。) |
回到頁首
備註
執行緒安全性
此類型的任何公用靜態 (在 Microsoft Visual Basic 為共用) 成員具備多執行緒作業安全。並非所有的執行個體成員都是安全執行緒。
範例
執行緒安全性
這個型別的任何公用 static (在 Visual Basic 中為 Shared) 成員都是執行緒安全的。並不是所有的執行個體成員都保證可以用於所有的執行緒。
請參閱
參考
Microsoft.SqlServer.Management.Common 命名空間
繼承階層
Object
Exception
Microsoft.SqlServer.Management.Common.SqlServerManagementException
Microsoft.SqlServer.Management.Collector.CollectorException
Microsoft.SqlServer.Management.Common.TransferException
Microsoft.SqlServer.Management.Dmf.DmfException
Microsoft.SqlServer.Management.RegisteredServers.RegisteredServerException
Microsoft.SqlServer.Management.Sdk.Sfc.EnumeratorException
Microsoft.SqlServer.Management.Sdk.Sfc.SfcException
Microsoft.SqlServer.Management.Smo.SmoException
Microsoft.SqlServer.Management.Trace.SqlTraceException
Microsoft.SqlServer.Management.Utility.UtilityException
Microsoft.SqlServer.Management.XEvent.XEventException
.gif)
.gif)
.gif)
.gif)
.gif)