Share via


SqlTraceException Constructor (String)

Initializes a new instance of the SQLTraceException class with the specified message.

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

Syntax

'Declaration
Public Sub New ( _
    message As String _
)
'Usage
Dim message As String 

Dim instance As New SqlTraceException(message)
public SqlTraceException(
    string message
)
public:
SqlTraceException(
    String^ message
)
new : 
        message:string -> SqlTraceException
public function SqlTraceException(
    message : String
)

Parameters

  • message
    Type: System.String
    A String value that specifies the message associated with the general SQL Trace exception.

Examples

Handling SMO Exceptions

See Also

Reference

SqlTraceException Class

SqlTraceException Overload

Microsoft.SqlServer.Management.Trace Namespace

Other Resources

Handling SMO Exceptions