ActivityHandler.InvokeResponseException 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
ActivityHandler.InvokeResponseException()
初始化 ActivityHandler.InvokeResponseException 類別的新執行個體。
public InvokeResponseException ();
Public Sub New ()
適用於
ActivityHandler.InvokeResponseException(String)
初始化 ActivityHandler.InvokeResponseException 類別的新執行個體。
public InvokeResponseException (string message);
new Microsoft.Bot.Builder.ActivityHandler.InvokeResponseException : string -> Microsoft.Bot.Builder.ActivityHandler.InvokeResponseException
Public Sub New (message As String)
參數
- message
- String
說明例外狀況原因或空字串的訊息。
適用於
ActivityHandler.InvokeResponseException(HttpStatusCode, Object)
初始化 ActivityHandler.InvokeResponseException 類別的新執行個體。
public InvokeResponseException (System.Net.HttpStatusCode statusCode, object body = default);
new Microsoft.Bot.Builder.ActivityHandler.InvokeResponseException : System.Net.HttpStatusCode * obj -> Microsoft.Bot.Builder.ActivityHandler.InvokeResponseException
Public Sub New (statusCode As HttpStatusCode, Optional body As Object = Nothing)
參數
- statusCode
- HttpStatusCode
錯誤的 Http 狀態碼。
- body
- Object
例外狀況的主體。 預設為 Null。
適用於
ActivityHandler.InvokeResponseException(String, Exception)
初始化 ActivityHandler.InvokeResponseException 類別的新執行個體。
public InvokeResponseException (string message, Exception innerException);
new Microsoft.Bot.Builder.ActivityHandler.InvokeResponseException : string * Exception -> Microsoft.Bot.Builder.ActivityHandler.InvokeResponseException
Public Sub New (message As String, innerException As Exception)
參數
- message
- String
說明例外狀況原因或空字串的訊息。
- innerException
- Exception
取得造成目前例外狀況的 System.Exception 實例。