Export (0) Print
Expand All

SmoException Class

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

Object
  Exception
    SqlServerManagementException
      Microsoft.SqlServer.Management.Smo.SmoException
        More...

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

public class SmoException extends SqlServerManagementException

The SmoException type exposes the following members.

  NameDescription
Public methodSmoException()Initializes a new instance of the SmoException class.
Public methodSmoException(String)Initializes a new instance of the SmoException class with the specified message.
Protected methodSmoException(SerializationInfo, StreamingContext)Initializes a new instance of the SmoException class with the specified serialization information and streaming context.
Public methodSmoException(String, Exception)Initializes a new instance of the SmoException class with the specified message and specified inner exception.
Top

  NameDescription
Public propertyData (Inherited from Exception.)
Public propertyHelpLinkGets the Help link for further information from Microsoft about the SMO exception. (Overrides ExceptionHelpLink.)
Public propertyHResult (Inherited from Exception.)
Public propertyInnerException (Inherited from Exception.)
Public propertyMessage (Inherited from Exception.)
Protected propertyStatic memberProdVerGets the product version of the instance of SQL Server that generated the SMO exception.
Public propertySmoExceptionTypeGets the type of SMO exception.
Public propertySource (Inherited from Exception.)
Public propertyStackTrace (Inherited from Exception.)
Public propertyTargetSite (Inherited from Exception.)
Top

  NameDescription
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodGetBaseException (Inherited from Exception.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetObjectDataSecurity Critical. (Inherited from Exception.)
Public methodGetType (Inherited from Exception.)
Protected methodMemberwiseClone (Inherited from Object.)
Protected methodSetHelpContextSets the Help context value for the referenced exception.
Public methodToString (Inherited from Exception.)
Top

  NameDescription
Protected eventSerializeObjectState (Inherited from Exception.)
Top

Thread Safety

Any public static (Shared in Microsoft Visual Basic) members of this type are safe for multithreaded operations. Any instance members are not guaranteed to be thread safe.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Object
  Exception
    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
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft