InputFormatterException 建構函式

定義

多載

InputFormatterException()

初始化 InputFormatterException 的新執行個體。

InputFormatterException(String)

使用指定的 InputFormatterException,初始化 message 的新執行個體。

InputFormatterException(String, Exception)

使用造成這個例外狀況的指定 message 和內部例外狀況,初始化 的新實例 InputFormatterException

InputFormatterException()

初始化 InputFormatterException 的新執行個體。

public:
 InputFormatterException();
public InputFormatterException ();
Public Sub New ()

適用於

InputFormatterException(String)

使用指定的 InputFormatterException,初始化 message 的新執行個體。

public:
 InputFormatterException(System::String ^ message);
public InputFormatterException (string message);
new Microsoft.AspNetCore.Mvc.Formatters.InputFormatterException : string -> Microsoft.AspNetCore.Mvc.Formatters.InputFormatterException
Public Sub New (message As String)

參數

message
String

例外狀況訊息。

適用於

InputFormatterException(String, Exception)

使用造成這個例外狀況的指定 message 和內部例外狀況,初始化 的新實例 InputFormatterException

public:
 InputFormatterException(System::String ^ message, Exception ^ innerException);
public InputFormatterException (string message, Exception innerException);
new Microsoft.AspNetCore.Mvc.Formatters.InputFormatterException : string * Exception -> Microsoft.AspNetCore.Mvc.Formatters.InputFormatterException
Public Sub New (message As String, innerException As Exception)

參數

message
String

例外狀況訊息。

innerException
Exception

做為目前例外狀況發生原因的例外狀況。

適用於