Share via


SqlTraceException Class

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

Namespace:  Microsoft.SqlServer.Management.Trace
Assembly:  Microsoft.SqlServer.ConnectionInfoExtended (in Microsoft.SqlServer.ConnectionInfoExtended.dll)

Syntax

'Declaration
<SerializableAttribute> _
Public Class SqlTraceException _
    Inherits SqlServerManagementException
'Usage
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

The SqlTraceException type exposes the following members.

Constructors

  Name Description
Public method SqlTraceException() Initializes a new instance of the SQLTraceException class.
Public method SqlTraceException(String) Initializes a new instance of the SQLTraceException class with the specified message.
Protected method SqlTraceException(SerializationInfo, StreamingContext) Initializes a new instance of the SQLTraceException class with the specified serialization information and the specified streaming context.
Public method SqlTraceException(String, Exception) Initializes a new instance of the SQLTraceException class with the specified message and inner exception.
Public method SqlTraceException(Type, String) Initializes a new instance of the SQLTraceException class with the specified source type and the specified message.
Public method SqlTraceException(Type, String, Exception) Initializes a new instance of the SQLTraceException class with the specified source type, message and inner exception.

Top

Properties

  Name Description
Public property Data (Inherited from Exception.)
Public property HelpLink (Inherited from Exception.)
Protected property HResult (Inherited from Exception.)
Public property InnerException (Inherited from Exception.)
Public property Message (Inherited from Exception.)
Protected propertyStatic member ProdVer Gets a String value that specifies the product version.
Public property Source (Inherited from Exception.)
Public property StackTrace (Inherited from Exception.)
Public property TargetSite (Inherited from Exception.)

Top

Methods

  Name Description
Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public method GetBaseException (Inherited from Exception.)
Public method GetHashCode (Inherited from Object.)
Public method GetObjectData (Inherited from Exception.)
Public method GetType (Inherited from Exception.)
Protected method MemberwiseClone (Inherited from Object.)
Public method ToString (Inherited from Exception.)

Top

Remarks

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

Thread Safety

Any public static (Shared in Microsoft Visual Basic) members of this type are safe for multithreaded operations. Any instance members are not guaranteed to be thread safe.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.