Condividi tramite


Classe SqlTraceException

The SQLTraceException class represents the general exception raised by the SMO trace objects.

Gerarchia di ereditarietà

System.Object
  System.Exception
    Microsoft.SqlServer.Management.Common.SqlServerManagementException
      Microsoft.SqlServer.Management.Trace.SqlTraceException
        Microsoft.SqlServer.Management.Trace.SqlTraceFailToInstantiateTypeException
        Microsoft.SqlServer.Management.Trace.SqlTraceFailToLoadInstAPIAssemblyException

Spazio dei nomi  Microsoft.SqlServer.Management.Trace
Assembly:  Microsoft.SqlServer.ConnectionInfoExtended (in Microsoft.SqlServer.ConnectionInfoExtended.dll)

Sintassi

'Dichiarazione
<SerializableAttribute> _
Public Class SqlTraceException _
    Inherits SqlServerManagementException
'Utilizzo
Dim instance As SqlTraceException
[SerializableAttribute]
public class SqlTraceException : SqlServerManagementException
[SerializableAttribute]
public ref class SqlTraceException : public SqlServerManagementException
[<SerializableAttribute>]
type SqlTraceException =  
    class 
        inherit SqlServerManagementException 
    end
public class SqlTraceException extends SqlServerManagementException

Nel tipo SqlTraceException sono esposti i membri seguenti.

Costruttori

  Nome Descrizione
Metodo pubblico SqlTraceException() Initializes a new instance of the SQLTraceException class.
Metodo pubblico SqlTraceException(String) Initializes a new instance of the SQLTraceException class with the specified message.
Metodo protetto SqlTraceException(SerializationInfo, StreamingContext) Initializes a new instance of the SQLTraceException class with the specified serialization information and the specified streaming context.
Metodo pubblico SqlTraceException(String, Exception) Initializes a new instance of the SQLTraceException class with the specified message and inner exception.
Metodo pubblico SqlTraceException(Type, String) Initializes a new instance of the SQLTraceException class with the specified source type and the specified message.
Metodo pubblico SqlTraceException(Type, String, Exception) Initializes a new instance of the SQLTraceException class with the specified source type, message and inner exception.

In alto

Proprietà

  Nome Descrizione
Proprietà pubblica Data Ereditato da Exception.
Proprietà pubblica HelpLink Ereditato da Exception.
Proprietà pubblica HResult Ereditato da Exception.
Proprietà pubblica InnerException Ereditato da Exception.
Proprietà pubblica Message Ereditato da Exception.
Proprietà protettaMembro statico ProdVer Gets a String value that specifies the product version.
Proprietà pubblica Source Ereditato da Exception.
Proprietà pubblica StackTrace Ereditato da Exception.
Proprietà pubblica TargetSite Ereditato da Exception.

In alto

Metodi

  Nome Descrizione
Metodo pubblico Equals Ereditato da Object.
Metodo protetto Finalize Ereditato da Object.
Metodo pubblico GetBaseException Ereditato da Exception.
Metodo pubblico GetHashCode Ereditato da Object.
Metodo pubblico GetObjectData Criticità per la sicurezza. Ereditato da Exception.
Metodo pubblico GetType Ereditato da Exception.
Metodo protetto MemberwiseClone Ereditato da Object.
Metodo pubblico ToString Ereditato da Exception.

In alto

Eventi

  Nome Descrizione
Evento protetto SerializeObjectState Ereditato da Exception.

In alto

Osservazioni

This class represents the main exception class in the SMO trace objects.

Thread Safety

Tutti i membri statici pubblici (Shared in Microsoft Visual Basic) di questo tipo sono sicuri per le operazioni a thread multipli. Non è invece garantita la sicurezza dei membri dell'istanza.

Protezione dei thread

I membri static (Shared in Visual Basic) pubblici di questo tipo sono affidabili. Non è invece garantita la sicurezza dei membri dell'istanza.

Vedere anche

Riferimento

Spazio dei nomi Microsoft.SqlServer.Management.Trace

Altre risorse

Gestione delle eccezioni SMO