SmoException SmoException SmoException Class


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

public ref class SmoException : Microsoft::SqlServer::Management::Common::SqlServerManagementException
public class SmoException : Microsoft.SqlServer.Management.Common.SqlServerManagementException
Public Class SmoException
Inherits SqlServerManagementException


Handling SMO Exceptions


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.


SmoException() SmoException() SmoException()

Initializes a new instance of the SmoException class.

SmoException(String) SmoException(String) SmoException(String)

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

SmoException(SerializationInfo, StreamingContext) SmoException(SerializationInfo, StreamingContext) SmoException(SerializationInfo, StreamingContext)

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

SmoException(String, Exception) SmoException(String, Exception) SmoException(String, Exception)

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


HelpLink HelpLink HelpLink

Gets the Help link for further information from Microsoft about the SMO exception.

ProdVer ProdVer ProdVer

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

SmoExceptionType SmoExceptionType SmoExceptionType

Gets the type of SMO exception.


SetHelpContext(String) SetHelpContext(String) SetHelpContext(String)

Sets the Help context value for the referenced exception.

Applies to