ODataErrorException 构造函数 (String, ODataError)

使用错误消息和 ODataError 对象创建 ODataErrorException 类的新实例。

命名空间:  Microsoft.Data.OData
程序集:  Microsoft.Data.OData(在 Microsoft.Data.OData.dll 中)

语法

声明
Public Sub New ( _
    message As String, _
    error As ODataError _
)
用法
Dim message As String
Dim error As ODataError

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

参数

  • message
    类型:System.String
    此异常的纯文本错误消息。

请参阅

参考

ODataErrorException 类

ODataErrorException 重载

Microsoft.Data.OData 命名空间