Compartir a través de


Clase SqlTraceException

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

Jerarquía de herencia

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

Espacio de nombres:  Microsoft.SqlServer.Management.Trace
Ensamblado:  Microsoft.SqlServer.ConnectionInfoExtended (en Microsoft.SqlServer.ConnectionInfoExtended.dll)

Sintaxis

'Declaración
<SerializableAttribute> _
Public Class SqlTraceException _
    Inherits SqlServerManagementException
'Uso
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

El tipo SqlTraceException expone los siguientes miembros.

Constructores

  Nombre Descripción
Método público SqlTraceException() Initializes a new instance of the SQLTraceException class.
Método público SqlTraceException(String) Initializes a new instance of the SQLTraceException class with the specified message.
Método protegido SqlTraceException(SerializationInfo, StreamingContext) Initializes a new instance of the SQLTraceException class with the specified serialization information and the specified streaming context.
Método público SqlTraceException(String, Exception) Initializes a new instance of the SQLTraceException class with the specified message and inner exception.
Método público SqlTraceException(Type, String) Initializes a new instance of the SQLTraceException class with the specified source type and the specified message.
Método público SqlTraceException(Type, String, Exception) Initializes a new instance of the SQLTraceException class with the specified source type, message and inner exception.

Arriba

Propiedades

  Nombre Descripción
Propiedad pública Data (Se hereda de Exception.)
Propiedad pública HelpLink (Se hereda de Exception.)
Propiedad pública HResult (Se hereda de Exception.)
Propiedad pública InnerException (Se hereda de Exception.)
Propiedad pública Message (Se hereda de Exception.)
Propiedad protegidaMiembro estático ProdVer Gets a String value that specifies the product version.
Propiedad pública Source (Se hereda de Exception.)
Propiedad pública StackTrace (Se hereda de Exception.)
Propiedad pública TargetSite (Se hereda de Exception.)

Arriba

Métodos

  Nombre Descripción
Método público Equals (Se hereda de Object.)
Método protegido Finalize (Se hereda de Object.)
Método público GetBaseException (Se hereda de Exception.)
Método público GetHashCode (Se hereda de Object.)
Método público GetObjectData Importante para la seguridad. (Se hereda de Exception.)
Método público GetType (Se hereda de Exception.)
Método protegido MemberwiseClone (Se hereda de Object.)
Método público ToString (Se hereda de Exception.)

Arriba

Eventos

  Nombre Descripción
Evento protegido SerializeObjectState (Se hereda de Exception.)

Arriba

Comentarios

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

Thread Safety

Todos los miembros estáticos (compartidos en Microsoft Visual Basic) públicos de este tipo son seguros para operaciones multiproceso. No se garantiza que los miembros de instancia sean seguros para subprocesos.

Seguridad para subprocesos

Cualquier miembro público static (Shared en Visual Basic) de este tipo es seguro para subprocesos. No se garantiza que los miembros de instancia sean seguros para subprocesos.

Vea también

Referencia

Espacio de nombres Microsoft.SqlServer.Management.Trace

Otros recursos

Controlar excepciones SMO