Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

SmoException Class

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

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

Namespace:  Microsoft.SqlServer.Management.Smo
Assembly:  Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)
[SerializableAttribute]
public class SmoException : 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 Exception.HelpLink.)
Protected 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 methodGetObjectData (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

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.
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
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.