Classe SmoException

The SmoException class represents the exception that is raised when an error occurs during an SMO operation.

Hiérarchie d'héritage

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

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

Syntaxe

'Déclaration
<SerializableAttribute> _
Public Class SmoException _
    Inherits SqlServerManagementException
'Utilisation
Dim instance As SmoException
[SerializableAttribute]
public class SmoException : SqlServerManagementException
[SerializableAttribute]
public ref class SmoException : public SqlServerManagementException
[<SerializableAttribute>]
type SmoException =  
    class
        inherit SqlServerManagementException
    end
public class SmoException extends SqlServerManagementException

Le type SmoException expose les membres suivants.

Constructeurs

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

Haut de la page

Propriétés

  Nom Description
Propriété publique Data (hérité de Exception.)
Propriété publique HelpLink Gets the Help link for further information from Microsoft about the SMO exception. (remplace Exception. . :: . .HelpLink.)
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é protégéeMembre statique ProdVer Gets the product version of the instance of SQL Server that generated the SMO exception.
Propriété publique SmoExceptionType Gets the type of SMO 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 protégée SetHelpContext Sets the Help context value for the referenced exception.
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.Smo..::..SmoException
        Microsoft.SqlServer.Management.Smo. . :: . .CollectionNotAvailableException
        Microsoft.SqlServer.Management.Smo. . :: . .FailedOperationException
        Microsoft.SqlServer.Management.Smo. . :: . .InternalSmoErrorException
        Microsoft.SqlServer.Management.Smo. . :: . .InvalidSmoOperationException
        Microsoft.SqlServer.Management.Smo. . :: . .InvalidVersionSmoOperationException
        Microsoft.SqlServer.Management.Smo. . :: . .MissingObjectException
        Microsoft.SqlServer.Management.Smo. . :: . .PropertyCannotBeRetrievedException
        Microsoft.SqlServer.Management.Smo. . :: . .PropertyNotSetException
        Microsoft.SqlServer.Management.Smo. . :: . .PropertyReadOnlyException
        Microsoft.SqlServer.Management.Smo. . :: . .PropertyTypeMismatchException
        Microsoft.SqlServer.Management.Smo. . :: . .PropertyWriteException
        Microsoft.SqlServer.Management.Smo. . :: . .ServiceRequestException
        Microsoft.SqlServer.Management.Smo. . :: . .SfcDependencyException
        Microsoft.SqlServer.Management.Smo. . :: . .UnknownPropertyException
        Microsoft.SqlServer.Management.Smo. . :: . .UnsupportedEngineTypeException
        Microsoft.SqlServer.Management.Smo. . :: . .UnsupportedFeatureException
        Microsoft.SqlServer.Management.Smo. . :: . .UnsupportedObjectNameException
        Microsoft.SqlServer.Management.Smo. . :: . .UnsupportedVersionException
        Microsoft.SqlServer.Management.Smo. . :: . .WrongPropertyValueException