Share via


Classe SqlServerManagementException

The SqlServerManagementException class is an exception that is raised when a SQL Server management error is encountered on the connection to the server.

Gerarchia di ereditarietà

System. . :: . .Object
  System. . :: . .Exception
    Microsoft.SqlServer.Management.Common..::..SqlServerManagementException
      Altro...

Spazio dei nomi  Microsoft.SqlServer.Management.Common
Assembly:  Microsoft.SqlServer.ConnectionInfo (in Microsoft.SqlServer.ConnectionInfo.dll)

Sintassi

'Dichiarazione
Public Class SqlServerManagementException _
    Inherits Exception
'Utilizzo
Dim instance As SqlServerManagementException
public class SqlServerManagementException : Exception
public ref class SqlServerManagementException : public Exception
type SqlServerManagementException =  
    class
        inherit Exception
    end
public class SqlServerManagementException extends Exception

Nel tipo SqlServerManagementException sono esposti i membri seguenti.

Costruttori

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

In alto

Proprietà

  Nome Descrizione
Proprietà pubblica Data Ereditato da Exception.
Proprietà pubblica HelpLink Ereditato da Exception.
Proprietà protetta HResult Ereditato da Exception.
Proprietà pubblica InnerException Ereditato da Exception.
Proprietà pubblica Message Ereditato da Exception.
Proprietà pubblicaMembro statico ProductName Gets the name of the product that caused the exception.
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 Ereditato da Exception.
Metodo pubblico GetType Ereditato da Exception.
Metodo protetto MemberwiseClone Ereditato da Object.
Metodo pubblico ToString Ereditato da Exception.

In alto

Osservazioni

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.

Gerarchia di ereditarietà

System. . :: . .Object
  System. . :: . .Exception
    Microsoft.SqlServer.Management.Common..::..SqlServerManagementException
      Microsoft.SqlServer.Management.Common. . :: . .TransferException
      Microsoft.SqlServer.Management.Dac. . :: . .DacException
      Microsoft.SqlServer.Management.Dmf. . :: . .DmfException
      Microsoft.SqlServer.Management.RegisteredServers. . :: . .RegisteredServerException
      Microsoft.SqlServer.Management.Sdk.Sfc. . :: . .EnumeratorException
      Microsoft.SqlServer.Management.Sdk.Sfc. . :: . .SfcException
      Microsoft.SqlServer.Management.Smo. . :: . .SmoException
      Microsoft.SqlServer.Management.Trace. . :: . .SqlTraceException
      Microsoft.SqlServer.Management.Utility. . :: . .UtilityException