Condividi tramite


SqlTraceException Constructor (String)

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

Spazio dei nomi: Microsoft.SqlServer.Management.Trace
Assembly : Microsoft.SqlServer.ConnectionInfo (in microsoft.sqlserver.connectioninfo.dll)

Sintassi

'Dichiarazione
Public Sub New ( _
    message As String _
)
public SqlTraceException (
    string message
)
public:
SqlTraceException (
    String^ message
)
public SqlTraceException (
    String message
)
public function SqlTraceException (
    message : String
)

Parametri

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

Osservazioni

This namespace, class, or member is supported only in version 2.0 of the Microsoft .NET Framework.

Esempio

How to: Catch an Exception in Visual Basic .NET

Piattaforme

Piattaforme di sviluppo

Per un elenco delle piattaforme supportate, vedere Requisiti hardware e software per l'Installazione di SQL Server 2005.

Piattaforme di destinazione

Per un elenco delle piattaforme supportate, vedere Requisiti hardware e software per l'Installazione di SQL Server 2005.

Vedere anche

Riferimento

SqlTraceException Class
SqlTraceException Members
Microsoft.SqlServer.Management.Trace Namespace

Altre risorse

Handling SMO Exceptions