DuplicateNameException Construtores

Definição

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

Sobrecargas

DuplicateNameException()

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

DuplicateNameException(String)

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

DuplicateNameException(SerializationInfo, StreamingContext)

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

DuplicateNameException(String, Exception)

Inicializa uma nova instância da classe DuplicateNameException com a cadeia de caracteres e exceção especificadas.Initializes a new instance of the DuplicateNameException class with the specified string and exception.

DuplicateNameException()

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

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

Aplica-se a

DuplicateNameException(String)

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

public:
 DuplicateNameException(System::String ^ s);
public DuplicateNameException (string? s);
public DuplicateNameException (string s);
new System.Data.DuplicateNameException : string -> System.Data.DuplicateNameException
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

DuplicateNameException(SerializationInfo, StreamingContext)

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

protected:
 DuplicateNameException(System::Runtime::Serialization::SerializationInfo ^ info, System::Runtime::Serialization::StreamingContext context);
protected DuplicateNameException (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
new System.Data.DuplicateNameException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.Data.DuplicateNameException
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

DuplicateNameException(String, Exception)

Inicializa uma nova instância da classe DuplicateNameException com a cadeia de caracteres e exceção especificadas.Initializes a new instance of the DuplicateNameException class with the specified string and exception.

public:
 DuplicateNameException(System::String ^ message, Exception ^ innerException);
public DuplicateNameException (string? message, Exception? innerException);
public DuplicateNameException (string message, Exception innerException);
new System.Data.DuplicateNameException : string * Exception -> System.Data.DuplicateNameException
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