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.

Hiérarchie d'héritage

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

Espace de noms :  Microsoft.SqlServer.Management.Common
Assembly :  Microsoft.SqlServer.ConnectionInfo (en Microsoft.SqlServer.ConnectionInfo.dll)

Syntaxe

'Déclaration
Public Class SqlServerManagementException _
    Inherits Exception
'Utilisation
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

Le type SqlServerManagementException expose les membres suivants.

Constructeurs

  Nom Description
Méthode publique SqlServerManagementException() () () () Initializes a new instance of the SqlServerManagementException class.
Méthode publique SqlServerManagementException(String) Initializes a new instance of the SqlServerManagementException class with the specified message text.
Méthode protégée SqlServerManagementException(SerializationInfo, StreamingContext) Initializes a new instance of the SqlServerManagementException class with the specified serialization information and streaming context.
Méthode publique SqlServerManagementException(String, Exception) Initializes a new instance of the SqlServerManagementException class with the specified message text and inner exception.

Haut de la page

Propriétés

  Nom Description
Propriété publique Data (hérité de Exception.)
Propriété publique HelpLink (hérité de Exception.)
Propriété protégée HResult (hérité de Exception.)
Propriété publique InnerException (hérité de Exception.)
Propriété publique Message (hérité de Exception.)
Propriété publiqueMembre statique ProductName Gets the name of the product that caused the exception.
Propriété publique Source (hérité de Exception.)
Propriété publique StackTrace (hérité de Exception.)
Propriété publique TargetSite (hérité de Exception.)

Haut de la page

Méthodes

  Nom Description
Méthode publique Equals (hérité de Object.)
Méthode protégée Finalize (hérité de Object.)
Méthode publique GetBaseException (hérité de Exception.)
Méthode publique GetHashCode (hérité de Object.)
Méthode publique GetObjectData (hérité de Exception.)
Méthode publique GetType (hérité de Exception.)
Méthode protégée MemberwiseClone (hérité de Object.)
Méthode publique ToString (hérité de Exception.)

Haut de la page

Notes

Thread Safety

Tout membre statique public (Partagé dans Microsoft Visual Basic) de ce type est sûr dans le cadre des opérations à plusieurs threads. Tous les membres de l'instance ne sont pas garantis comme étant thread-safe.

Sécurité des threads

Tous les membres publics static (Shared dans Visual Basic) de ce type sont thread-safe. Tous les membres de l'instance ne sont pas garantis comme étant thread-safe.

Hiérarchie d'héritage

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