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
    此异常的纯文本错误消息。

注释

Error 属性将使用空 ODataError 实例初始化。

请参阅

参考

ODataErrorException 类

ODataErrorException 重载

Microsoft.Data.OData 命名空间