ODataException Constructor (SerializationInfo, StreamingContext)
Creates a new instance of the ODataException class from the specified SerializationInfo and StreamingContext instances.
Namespace: Microsoft.Data.OData
Assembly: Microsoft.Data.OData (in Microsoft.Data.OData.dll)
Syntax
'Declaration
Protected Sub New ( _
info As SerializationInfo, _
context As StreamingContext _
)
'Usage
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
)
Parameters
- info
Type: System.Runtime.Serialization.SerializationInfo
A SerializationInfo containing the information required to serialize the new ODataException.
- context
Type: System.Runtime.Serialization.StreamingContext
A StreamingContext containing the source of the serialized stream associated with the new ODataException.