共用方式為


ODataErrorException 建構函式 (String, Exception, ODataError)

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

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

語法

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

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

參數

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

請參閱

參考

ODataErrorException 類別

ODataErrorException 多載

Microsoft.Data.OData 命名空間