ReadOnlyException Construtores

Definição

Inicializa uma nova instância da classe ReadOnlyException.Initializes a new instance of the ReadOnlyException class.

Sobrecargas

ReadOnlyException()

Inicializa uma nova instância da classe ReadOnlyException.Initializes a new instance of the ReadOnlyException class.

ReadOnlyException(String)

Inicializa uma nova instância da classe ReadOnlyException com a cadeia de caracteres especificada.Initializes a new instance of the ReadOnlyException class with the specified string.

ReadOnlyException(SerializationInfo, StreamingContext)

Inicializa uma nova instância da classe ReadOnlyException com informações de serialização.Initializes a new instance of the ReadOnlyException class with serialization information.

ReadOnlyException(String, Exception)

Inicializa uma nova instância da classe ReadOnlyException com uma mensagem de erro especificada e uma referência à exceção interna que é a causa da exceção.Initializes a new instance of the ReadOnlyException class with a specified error message and a reference to the inner exception that is the cause of this exception.

ReadOnlyException()

Inicializa uma nova instância da classe ReadOnlyException.Initializes a new instance of the ReadOnlyException class.

public:
 ReadOnlyException();
public ReadOnlyException ();
Public Sub New ()

Aplica-se a

ReadOnlyException(String)

Inicializa uma nova instância da classe ReadOnlyException com a cadeia de caracteres especificada.Initializes a new instance of the ReadOnlyException class with the specified string.

public:
 ReadOnlyException(System::String ^ s);
public ReadOnlyException (string? s);
public ReadOnlyException (string s);
new System.Data.ReadOnlyException : string -> System.Data.ReadOnlyException
Public Sub New (s As String)

Parâmetros

s
String

A cadeia de caracteres a ser exibida quando a exceção é gerada.The string to display when the exception is thrown.

Aplica-se a

ReadOnlyException(SerializationInfo, StreamingContext)

Inicializa uma nova instância da classe ReadOnlyException com informações de serialização.Initializes a new instance of the ReadOnlyException class with serialization information.

protected:
 ReadOnlyException(System::Runtime::Serialization::SerializationInfo ^ info, System::Runtime::Serialization::StreamingContext context);
protected ReadOnlyException (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
new System.Data.ReadOnlyException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.Data.ReadOnlyException
Protected Sub New (info As SerializationInfo, context As StreamingContext)

Parâmetros

info
SerializationInfo

Os dados necessários para serializar ou desserializar um objeto.The data that is required to serialize or deserialize an object.

context
StreamingContext

Descrição da origem e do destino do fluxo serializado especificado.Description of the source and destination of the specified serialized stream.

Confira também

Aplica-se a

ReadOnlyException(String, Exception)

Inicializa uma nova instância da classe ReadOnlyException com uma mensagem de erro especificada e uma referência à exceção interna que é a causa da exceção.Initializes a new instance of the ReadOnlyException class with a specified error message and a reference to the inner exception that is the cause of this exception.

public:
 ReadOnlyException(System::String ^ message, Exception ^ innerException);
public ReadOnlyException (string? message, Exception? innerException);
public ReadOnlyException (string message, Exception innerException);
new System.Data.ReadOnlyException : string * Exception -> System.Data.ReadOnlyException
Public Sub New (message As String, innerException As Exception)

Parâmetros

message
String

A mensagem de erro que explica a razão da exceção.The error message that explains the reason for the exception.

innerException
Exception

A exceção que é a causa da exceção atual ou uma referência nula (Nothing no Visual Basic) se nenhuma exceção interna é especificada.The exception that is the cause of the current exception, or a null reference (Nothing in Visual Basic) if no inner exception is specified.

Aplica-se a