共用方式為


ODataException 建構函式 (SerializationInfo, StreamingContext)

從指定的 SerializationInfoStreamingContext 執行個體,建立 ODataException 類別的新執行個體。

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

語法

'宣告
Protected Sub New ( _
    info As SerializationInfo, _
    context As StreamingContext _
)
'用途
Dim info As SerializationInfo
Dim context As StreamingContext

Dim instance As New ODataException(info, context)
protected ODataException(
    SerializationInfo info,
    StreamingContext context
)
protected:
ODataException(
    SerializationInfo^ info, 
    StreamingContext context
)
new : 
        info:SerializationInfo * 
        context:StreamingContext -> ODataException
protected function ODataException(
    info : SerializationInfo, 
    context : StreamingContext
)

參數

請參閱

參考

ODataException 類別

ODataException 多載

Microsoft.Data.OData 命名空間