次の方法で共有


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 名前空間