共用方式為


ODataContentTypeException 建構函式 (String, Exception)

建立 ODataContentTypeException 類別的新執行個體。

命名空間:  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 ODataContentTypeException(message, _
    innerException)
public ODataContentTypeException(
    string message,
    Exception innerException
)
public:
ODataContentTypeException(
    String^ message, 
    Exception^ innerException
)
new : 
        message:string * 
        innerException:Exception -> ODataContentTypeException
public function ODataContentTypeException(
    message : String, 
    innerException : Exception
)

參數

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

請參閱

參考

ODataContentTypeException 類別

ODataContentTypeException 多載

Microsoft.Data.OData 命名空間