OperationException Constructors

Definition

Overloads

OperationException()

Initializes a new instance of the OperationException class.

OperationException(String)

Initializes a new instance of the OperationException class.

OperationException(SerializationInfo, StreamingContext)
Obsolete.

Initializes a new instance of the OperationException class from a serialized form.

OperationException(String, Exception)

Initializes a new instance of the OperationException class.

OperationException()

Source:
OperationException.cs
Source:
OperationException.cs
Source:
OperationException.cs
Source:
OperationException.cs
Source:
OperationException.cs
Source:
OperationException.cs
Source:
OperationException.cs

Initializes a new instance of the OperationException class.

public OperationException ();
Public Sub New ()

Applies to

OperationException(String)

Source:
OperationException.cs
Source:
OperationException.cs
Source:
OperationException.cs
Source:
OperationException.cs
Source:
OperationException.cs
Source:
OperationException.cs
Source:
OperationException.cs
Source:
OperationException.cs
Source:
OperationException.cs

Initializes a new instance of the OperationException class.

public OperationException (string message);
new Microsoft.EntityFrameworkCore.Design.OperationException : string -> Microsoft.EntityFrameworkCore.Design.OperationException
Public Sub New (message As String)

Parameters

message
String

The message that describes the error.

Applies to

OperationException(SerializationInfo, StreamingContext)

Source:
OperationException.cs
Source:
OperationException.cs
Source:
OperationException.cs
Source:
OperationException.cs
Source:
OperationException.cs
Source:
OperationException.cs
Source:
OperationException.cs

Caution

This API supports obsolete formatter-based serialization. It should not be called or extended by application code.

Initializes a new instance of the OperationException class from a serialized form.

public OperationException (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
[System.Obsolete("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.")]
public OperationException (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
new Microsoft.EntityFrameworkCore.Design.OperationException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> Microsoft.EntityFrameworkCore.Design.OperationException
[<System.Obsolete("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.")>]
new Microsoft.EntityFrameworkCore.Design.OperationException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> Microsoft.EntityFrameworkCore.Design.OperationException
Public Sub New (info As SerializationInfo, context As StreamingContext)

Parameters

info
SerializationInfo

The serialization info.

context
StreamingContext

The streaming context being used.

Attributes

Applies to

OperationException(String, Exception)

Source:
OperationException.cs
Source:
OperationException.cs
Source:
OperationException.cs
Source:
OperationException.cs
Source:
OperationException.cs
Source:
OperationException.cs
Source:
OperationException.cs
Source:
OperationException.cs
Source:
OperationException.cs

Initializes a new instance of the OperationException class.

public OperationException (string message, Exception innerException);
public OperationException (string message, Exception? innerException);
new Microsoft.EntityFrameworkCore.Design.OperationException : string * Exception -> Microsoft.EntityFrameworkCore.Design.OperationException
Public Sub New (message As String, innerException As Exception)

Parameters

message
String

The message that describes the error.

innerException
Exception

The exception that is the cause of the current exception.

Applies to