共用方式為


ODataErrorException 建構函式 (String, Exception)

使用錯誤訊息和內部例外狀況,建立 ODataErrorException 類別的新執行個體。

命名空間:  Microsoft.Data.OData
組件:  Microsoft.Data.OData (在 Microsoft.Data.OData.dll 中)

語法

'宣告
Public Sub New ( _
    message As String, _
    innerException As Exception _
)
'用途
Dim message As String
Dim innerException As Exception

Dim instance As New ODataErrorException(message, _
    innerException)
public ODataErrorException(
    string message,
    Exception innerException
)
public:
ODataErrorException(
    String^ message, 
    Exception^ innerException
)
new : 
        message:string * 
        innerException:Exception -> ODataErrorException
public function ODataErrorException(
    message : String, 
    innerException : Exception
)

參數

  • message
    型別:System.String
    此例外狀況的純文字錯誤訊息。
  • innerException
    型別:System.Exception
    導致此例外狀況擲回的內部例外狀況。

備註

Error 屬性將會透過空的 ODataError 執行個體初始化。

請參閱

參考

ODataErrorException 類別

ODataErrorException 多載

Microsoft.Data.OData 命名空間