ServicedComponentException 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
初始化 ServicedComponentException 類別的新執行個體。
多載
| 名稱 | Description |
|---|---|
| ServicedComponentException() |
初始化 ServicedComponentException 類別的新執行個體。 |
| ServicedComponentException(String) |
使用指定的錯誤訊息,初始化 ServicedComponentException 類別的新實例。 |
| ServicedComponentException(String, Exception) |
初始化 ServicedComponentException 類別的新執行個體。 |
ServicedComponentException()
初始化 ServicedComponentException 類別的新執行個體。
public:
ServicedComponentException();
public ServicedComponentException();
Public Sub New ()
適用於
ServicedComponentException(String)
使用指定的錯誤訊息,初始化 ServicedComponentException 類別的新實例。
public:
ServicedComponentException(System::String ^ message);
public ServicedComponentException(string message);
new System.EnterpriseServices.ServicedComponentException : string -> System.EnterpriseServices.ServicedComponentException
Public Sub New (message As String)
參數
- message
- String
當例外被拋出時,該訊息會顯示給客戶端。
適用於
ServicedComponentException(String, Exception)
初始化 ServicedComponentException 類別的新執行個體。
public:
ServicedComponentException(System::String ^ message, Exception ^ innerException);
public ServicedComponentException(string message, Exception innerException);
new System.EnterpriseServices.ServicedComponentException : string * Exception -> System.EnterpriseServices.ServicedComponentException
Public Sub New (message As String, innerException As Exception)
參數
- message
- String
當例外被拋出時,該訊息會顯示給客戶端。
- innerException
- Exception
InnerException如果有的話,那就是目前的例外。