Export (0) Print
Expand All

SmoException Class

 

Applies To: SQL Server 2016 Preview

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

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

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

[SerializableAttribute]
public ref class SmoException : SqlServerManagementException

NameDescription
System_CAPS_pubmethodSmoException()

Initializes a new instance of the SmoException class.

System_CAPS_protmethodSmoException(SerializationInfo^, StreamingContext)

Initializes a new instance of the SmoException class with the specified serialization information and streaming context.

System_CAPS_pubmethodSmoException(String^)

Initializes a new instance of the SmoException class with the specified message.

System_CAPS_pubmethodSmoException(String^, Exception^)

Initializes a new instance of the SmoException class with the specified message and specified inner exception.

NameDescription
System_CAPS_pubpropertyData

(Inherited from Exception.)

System_CAPS_pubpropertyHelpLink

Gets the Help link for further information from Microsoft about the SMO exception.(Overrides Exception::HelpLink.)

System_CAPS_pubpropertyHResult

(Inherited from Exception.)

System_CAPS_pubpropertyInnerException

(Inherited from Exception.)

System_CAPS_pubpropertyMessage

(Inherited from Exception.)

System_CAPS_protpropertySystem_CAPS_staticProdVer

Gets the product version of the instance of SQL Server that generated the SMO exception.

System_CAPS_pubpropertySmoExceptionType

Gets the type of SMO exception.

System_CAPS_pubpropertySource

(Inherited from Exception.)

System_CAPS_pubpropertyStackTrace

(Inherited from Exception.)

System_CAPS_pubpropertyTargetSite

(Inherited from Exception.)

NameDescription
System_CAPS_pubmethodEquals(Object^)

(Inherited from Object.)

System_CAPS_protmethodFinalize()

(Inherited from Object.)

System_CAPS_pubmethodGetBaseException()

(Inherited from Exception.)

System_CAPS_pubmethodGetHashCode()

(Inherited from Object.)

System_CAPS_pubmethodGetObjectData(SerializationInfo^, StreamingContext)

(Inherited from Exception.)

System_CAPS_pubmethodGetType()

(Inherited from Exception.)

System_CAPS_protmethodMemberwiseClone()

(Inherited from Object.)

System_CAPS_protmethodSetHelpContext(String^)

Sets the Help context value for the referenced exception.

System_CAPS_pubmethodToString()

(Inherited from Exception.)

NameDescription
System_CAPS_proteventSerializeObjectState

(Inherited from Exception.)

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.

Return to top
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

Show:
© 2015 Microsoft