DataServiceTransportException Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
DataServiceTransportException(IODataResponseMessage, Exception) |
Constructs a new instance of DataServiceTransportException. |
DataServiceTransportException(SerializationInfo, StreamingContext) |
DataServiceTransportException(IODataResponseMessage, Exception)
Constructs a new instance of DataServiceTransportException.
public DataServiceTransportException (Microsoft.OData.IODataResponseMessage response, Exception innerException);
new Microsoft.OData.Client.DataServiceTransportException : Microsoft.OData.IODataResponseMessage * Exception -> Microsoft.OData.Client.DataServiceTransportException
Public Sub New (response As IODataResponseMessage, innerException As Exception)
Parameters
- response
- IODataResponseMessage
ResponseMessage from the exception so that the error payload can be read.
- innerException
- Exception
Actual exception that this exception is wrapping.
Applies to
DataServiceTransportException(SerializationInfo, StreamingContext)
protected DataServiceTransportException (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
new Microsoft.OData.Client.DataServiceTransportException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> Microsoft.OData.Client.DataServiceTransportException
Protected Sub New (info As SerializationInfo, context As StreamingContext)
Parameters
- info
- SerializationInfo
- context
- StreamingContext