SmoException SmoException SmoException Class

Definition

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
Inheritance
Microsoft.SqlServer.Management.Common.SqlServerManagementExceptionMicrosoft.SqlServer.Management.Common.SqlServerManagementExceptionMicrosoft.SqlServer.Management.Common.SqlServerManagementException
SmoExceptionSmoExceptionSmoException
Derived

Examples

Handling SMO Exceptions

Remarks

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.

Constructors

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.

Properties

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.

Methods

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

Sets the Help context value for the referenced exception.

Applies to