DataServiceQueryException Construtores

Definição

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

Sobrecargas

DataServiceQueryException()

Inicializa uma nova instância da classe DataServiceQueryException com uma mensagem fornecida pelo sistema que descreve o erro.Initializes a new instance of the DataServiceQueryException class with a system-supplied message that describes the error.

DataServiceQueryException(String)

Inicializa uma nova instância da classe DataServiceQueryException com uma mensagem especificada que descreve o erro.Initializes a new instance of the DataServiceQueryException class with a specified message that describes the error.

DataServiceQueryException(String, Exception)

Inicializa uma nova instância da classe DataServiceQueryException 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 DataServiceQueryException class with a specified error message and a reference to the inner exception that is the cause of this exception.

DataServiceQueryException(String, Exception, QueryOperationResponse)

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

DataServiceQueryException()

Inicializa uma nova instância da classe DataServiceQueryException com uma mensagem fornecida pelo sistema que descreve o erro.Initializes a new instance of the DataServiceQueryException class with a system-supplied message that describes the error.

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

Comentários

Esse construtor inicializa a Message propriedade da nova instância para uma mensagem fornecida pelo sistema que descreve o erro.This constructor initializes the Message property of the new instance to a system-supplied message that describes the error. Essa mensagem considera a cultura do sistema atual.This message takes into account the current system culture.

A tabela a seguir mostra os valores de propriedade inicial de uma instância de InsufficientMemoryException.The following table shows the initial property values for an instance of InsufficientMemoryException.

PropriedadeProperty ValorValue
InnerException null.null.
Message A cadeia de caracteres da mensagem de erro localizada.The localized error message string.

Aplica-se a

DataServiceQueryException(String)

Inicializa uma nova instância da classe DataServiceQueryException com uma mensagem especificada que descreve o erro.Initializes a new instance of the DataServiceQueryException class with a specified message that describes the error.

public:
 DataServiceQueryException(System::String ^ message);
public DataServiceQueryException (string message);
new System.Data.Services.Client.DataServiceQueryException : string -> System.Data.Services.Client.DataServiceQueryException
Public Sub New (message As String)

Parâmetros

message
String

A mensagem que descreve a exceção.The message that describes the exception. O chamador deste construtor é obrigatório para garantir que esta cadeia de caracteres foi localizada para a cultura do sistema atual.The caller of this constructor is required to ensure that this string has been localized for the current system culture.

Comentários

A tabela a seguir mostra os valores de propriedade inicial de uma instância de DataServiceQueryException.The following table shows the initial property values for an instance of DataServiceQueryException.

PropriedadeProperty ValorValue
InnerException null.null.
Message A cadeia da mensagem de erro especificada na message.The error message string specified in message.

Aplica-se a

DataServiceQueryException(String, Exception)

Inicializa uma nova instância da classe DataServiceQueryException 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 DataServiceQueryException class with a specified error message and a reference to the inner exception that is the cause of this exception.

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

Parâmetros

message
String

A mensagem que descreve a exceção.The message that describes the exception. O chamador deste construtor é obrigatório para garantir que esta cadeia de caracteres foi localizada para a cultura do sistema atual.The caller of this constructor is required to ensure that this string has been localized for the current system culture.

innerException
Exception

A exceção que é a causa da exceção atual.The exception that is the cause of the current exception. Caso o parâmetro innerException não seja null, a exceção atual é acionada em um bloco catch que identifica a exceção interna.If the innerException parameter is not null, the current exception is raised in a catch block that handles the inner exception.

Comentários

Uma exceção que é lançada como um resultado direto de uma exceção anterior deve incluir uma referência para a exceção anterior na propriedade InnerException.An exception that is thrown as a direct result of a previous exception should include a reference to the previous exception in the InnerException property. A propriedade InnerException retorna o mesmo valor passado ao construtor, ou null se a propriedade InnerException não fornecer o valor da exceção interna ao construtor.The InnerException property returns the same value that is passed into the constructor, or null if the InnerException property does not supply the inner exception value to the constructor.

A tabela a seguir mostra os valores de propriedade inicial de uma instância de DataServiceQueryException.The following table shows the initial property values for an instance of DataServiceQueryException.

PropriedadeProperty ValorValue
InnerException null.null.
Message A cadeia da mensagem de erro especificada na message.The error message string specified in message.

Aplica-se a

DataServiceQueryException(String, Exception, QueryOperationResponse)

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

public:
 DataServiceQueryException(System::String ^ message, Exception ^ innerException, System::Data::Services::Client::QueryOperationResponse ^ response);
public DataServiceQueryException (string message, Exception innerException, System.Data.Services.Client.QueryOperationResponse response);
new System.Data.Services.Client.DataServiceQueryException : string * Exception * System.Data.Services.Client.QueryOperationResponse -> System.Data.Services.Client.DataServiceQueryException
Public Sub New (message As String, innerException As Exception, response As QueryOperationResponse)

Parâmetros

message
String

O valor da cadeia de caracteres que contém a mensagem de erro.The string value that contains the error message.

innerException
Exception

O objeto de exceção interna.The inner exception object.

Aplica-se a