Classe DataProviderException
Representa uma exceção acionada quando um erro do provedor de DDEX ocorre.
Hierarquia de herança
Object
Exception
ApplicationException
Microsoft.VisualStudio.Data.DataProviderException
Namespace: Microsoft.VisualStudio.Data
Assembly: Microsoft.VisualStudio.Data (em Microsoft.VisualStudio.Data.dll)
Sintaxe
'Declaração
<SerializableAttribute> _
Public Class DataProviderException _
Inherits ApplicationException
[SerializableAttribute]
public class DataProviderException : ApplicationException
[SerializableAttribute]
public ref class DataProviderException : public ApplicationException
[<SerializableAttribute>]
type DataProviderException =
class
inherit ApplicationException
end
public class DataProviderException extends ApplicationException
O tipo DataProviderException expõe os membros a seguir.
Construtores
Nome | Descrição | |
---|---|---|
![]() |
DataProviderException() | Construtor da classe.Inicializa uma nova instância da classe DataProviderException. |
![]() |
DataProviderException(String) | Construtor da classe.Inicializa uma nova instância da classe, parametrizada de DataProviderException com o nome do provedor de DDEX. |
![]() |
DataProviderException(SerializationInfo, StreamingContext) | Construtor da classe.Inicializa uma nova instância da classe, parametrizada de DataProviderException com dados serializados. |
![]() |
DataProviderException(String, Exception) | Construtor da classe.Inicializa uma nova instância da classe, parametrizada de DataProviderException com uma mensagem de erro especificada e uma referência para a exceção interna que causou a exceção. |
![]() |
DataProviderException(String, String) | Construtor da classe.Inicializa uma nova instância da classe, parametrizadas de DataProviderException com um nome de provedor especificado e mensagem de erro. |
![]() |
DataProviderException(String, String, Exception) | Construtor da classe.Inicializa uma nova instância da classe de DataProviderException com um nome de provedor especificado, mensagem de erro e uma referência para a exceção interna que é a causa de essa exceção. |
Superior
Propriedades
Nome | Descrição | |
---|---|---|
![]() |
Data | Gets a collection of key/value pairs that provide additional user-defined information about the exception. (Herdado de Exception.) |
![]() |
HelpLink | Gets or sets a link to the help file associated with this exception. (Herdado de Exception.) |
![]() |
HResult | Gets or sets HRESULT, a coded numerical value that is assigned to a specific exception. (Herdado de Exception.) |
![]() |
InnerException | Gets the Exception instance that caused the current exception. (Herdado de Exception.) |
![]() |
Message | Gets a message that describes the current exception. (Herdado de Exception.) |
![]() |
Source | Gets or sets the name of the application or the object that causes the error. (Herdado de Exception.) |
![]() |
StackTrace | Gets a string representation of the immediate frames on the call stack. (Herdado de Exception.) |
![]() |
TargetSite | Gets the method that throws the current exception. (Herdado de Exception.) |
Superior
Métodos
Nome | Descrição | |
---|---|---|
![]() |
Equals | Determines whether the specified object is equal to the current object. (Herdado de Object.) |
![]() |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Herdado de Object.) |
![]() |
GetBaseException | When overridden in a derived class, returns the Exception that is the root cause of one or more subsequent exceptions. (Herdado de Exception.) |
![]() |
GetHashCode | Serves as the default hash function. (Herdado de Object.) |
![]() |
GetObjectData | Segurança crítica. When overridden in a derived class, sets the SerializationInfo with information about the exception. (Herdado de Exception.) |
![]() |
GetType | Gets the runtime type of the current instance. (Herdado de Exception.) |
![]() |
MemberwiseClone | Creates a shallow copy of the current Object. (Herdado de Object.) |
![]() |
ToString | Creates and returns a string representation of the current exception. (Herdado de Exception.) |
Superior
Eventos
Nome | Descrição | |
---|---|---|
![]() |
SerializeObjectState | Occurs when an exception is serialized to create an exception state object that contains serialized data about the exception. (Herdado de Exception.) |
Superior
Comentários
DataProviderException normalmente é acionada pelos serviços de DDEX e os componentes de tempo de execução quando encontra uma inconsistência ou algo inesperado quando chamar em um provedor de DDEX.
Este método usa HRESULT E_UNEXPECTED, que tem o valor 0x8000FFFF hex.
Quando uma exceção de esse tipo é lançada, a mensagem de erro em si não é propagada com a exceção. Em vez de isso, o erro real é efetuado logon para o logon do aplicativo computador local e uma mensagem genérica é colocada na exceção.
Esta classe herda de ApplicationException.
Acesso thread-safe
Quaisquer membros estático (Shared no Visual Basic) públicos deste tipo são thread-safe. Não há garantia de que qualquer membro de instância seja thread-safe.