共用方式為


SmoExceptionType 列舉

The SmoExceptionType enumeration contains values that are used to specify the type of SMO exception.

命名空間:  Microsoft.SqlServer.Management.Smo
組件:  Microsoft.SqlServer.Smo (在 Microsoft.SqlServer.Smo.dll 中)

語法

'宣告
Public Enumeration SmoExceptionType
'用途
Dim instance As SmoExceptionType
public enum SmoExceptionType
public enum class SmoExceptionType
type SmoExceptionType
public enum SmoExceptionType

成員

成員名稱 說明
CollectionNotAvailableException Specifies the exception that is raised when a collection is not available.
FailedOperationException Specifies the exception that is raised when an operation fails.
InternalSmoErrorException Specifies the exception that is raised when an internal SMO error occurs.
InvalidScriptingOptionException Specifies the exception that is raised when an invalid scripting option has been specified.
InvalidSmoOperationException Specifies the exception that is raised when an SMO operation that is not valid is called.
InvalidVersionSmoOperationException Specifies the exception that is raised when an invalid version of an SMO operation is called.
MissingObjectException Specifies the exception that is raised when an object is missing.
PropertyCannotBeRetrievedException Specifies the exception that is raised when a property cannot be retrieved.
PropertyNotSetException Specifies the exception that is raised when a property is not set and is required to be set.
PropertyReadOnlyException Specifies the exception that is raised when an attempt to modify a read-only property occurs.
PropertyTypeMismatchException Specifies the exception that is raised when an attempt to update a property with an incorrect data type occurs.
PropertyWriteException Specifies the exception that is raised when an error occurs during the update of a property.
ScriptWriterException Specifies an exception that is raised when writing a script.
ServiceRequestException Specifies the exception that is raised when an error occurs during a service request.
SfcDependencyException Specifies the exception that is raised when the Sfc namespace is not accessible.
SmoException Specifies the exception that is raised when an SMO exception occurs.
UnknownPropertyException Specifies the exception that is raised when an unknown property is requested.
UnsupportedEngineTypeException Specifies the exception that is raised when an operation is attempted that is not supported on the current engine type. The engine type is either SQL Azure or an instance of the SQL Server Database Engine.
UnsupportedFeatureException Specifies the exception that is raised when a feature is not supported.
UnsupportedObjectNameException Specifies the exception that is raised when an object name is not supported.
UnsupportedVersionException Specifies the exception that is raised when an unsupported version is encountered.
WrongPropertyValueException Specifies the exception that is raised when an attempt to modify a property with an incorrect value occurs.

備註

The SmoExceptionType enumeration class is served by the SmoExceptionType property of SMO exceptions.

範例

處理 SMO 例外狀況

請參閱

參考

Microsoft.SqlServer.Management.Smo 命名空間