SmoException-Klasse

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

Vererbungshierarchie

System.Object
  System.Exception
    Microsoft.SqlServer.Management.Common.SqlServerManagementException
      Microsoft.SqlServer.Management.Smo.SmoException
        Mehr…

Namespace:  Microsoft.SqlServer.Management.Smo
Assembly:  Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)

Syntax

'Declaration
<SerializableAttribute> _
Public Class SmoException _
    Inherits SqlServerManagementException
'Usage
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

Der SmoException-Typ macht folgende Elemente verfügbar.

Konstruktoren

  Name Beschreibung
Öffentliche Methode SmoException() Initializes a new instance of the SmoException class.
Öffentliche Methode SmoException(String) Initializes a new instance of the SmoException class with the specified message.
Geschützte Methode SmoException(SerializationInfo, StreamingContext) Initializes a new instance of the SmoException class with the specified serialization information and streaming context.
Öffentliche Methode SmoException(String, Exception) Initializes a new instance of the SmoException class with the specified message and specified inner exception.

Zum Anfang

Eigenschaften

  Name Beschreibung
Öffentliche Eigenschaft Data (Geerbt von Exception.)
Öffentliche Eigenschaft HelpLink Gets the Help link for further information from Microsoft about the SMO exception. (Überschreibt Exception.HelpLink.)
Öffentliche Eigenschaft HResult (Geerbt von Exception.)
Öffentliche Eigenschaft InnerException (Geerbt von Exception.)
Öffentliche Eigenschaft Message (Geerbt von Exception.)
Geschützte EigenschaftStatisches Element ProdVer Gets the product version of the instance of SQL Server that generated the SMO exception.
Öffentliche Eigenschaft SmoExceptionType Gets the type of SMO exception.
Öffentliche Eigenschaft Source (Geerbt von Exception.)
Öffentliche Eigenschaft StackTrace (Geerbt von Exception.)
Öffentliche Eigenschaft TargetSite (Geerbt von Exception.)

Zum Anfang

Methoden

  Name Beschreibung
Öffentliche Methode Equals (Geerbt von Object.)
Geschützte Methode Finalize (Geerbt von Object.)
Öffentliche Methode GetBaseException (Geerbt von Exception.)
Öffentliche Methode GetHashCode (Geerbt von Object.)
Öffentliche Methode GetObjectData Sicherheitskritisch (Geerbt von Exception.)
Öffentliche Methode GetType (Geerbt von Exception.)
Geschützte Methode MemberwiseClone (Geerbt von Object.)
Geschützte Methode SetHelpContext Sets the Help context value for the referenced exception.
Öffentliche Methode ToString (Geerbt von Exception.)

Zum Anfang

Ereignisse

  Name Beschreibung
Geschütztes Ereignis SerializeObjectState (Geerbt von Exception.)

Zum Anfang

Hinweise

Thread Safety

Alle öffentlichen, statischen Elemente dieses Typs (Shared in Microsoft Visual Basic) sind für Vorgänge mit mehreren Threads sicher. Bei Instanzmembern ist die Threadsicherheit nicht gewährleistet.

Beispiele

Behandeln von SMO-Ausnahmen

Threadsicherheit

Alle öffentlichen static (Shared in Visual Basic)-Elemente dieses Typs sind Threadsicher. Für Instanzelemente wird die Threadsicherheit nicht gewährleistet.

Siehe auch

Verweis

Microsoft.SqlServer.Management.Smo-Namespace

Vererbungshierarchie

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.InvalidRestorePlanException
        Microsoft.SqlServer.Management.Smo.InvalidScriptingOptionException
        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.ScriptWriterException
        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