Класс PropertyTypeMismatchException
The PropertyTypeMismatchException class represents the exception raised when an attempt is made to set the property with a value that has the incorrect data type.
Иерархия наследования
System. . :: . .Object
System. . :: . .Exception
Microsoft.SqlServer.Management.Common. . :: . .SqlServerManagementException
Microsoft.SqlServer.Management.Smo. . :: . .SmoException
Microsoft.SqlServer.Management.Smo..::..PropertyTypeMismatchException
Пространство имен: Microsoft.SqlServer.Management.Smo
Сборка: Microsoft.SqlServer.Smo (в Microsoft.SqlServer.Smo.dll)
Синтаксис
'Декларация
<SerializableAttribute> _
Public NotInheritable Class PropertyTypeMismatchException _
Inherits SmoException
'Применение
Dim instance As PropertyTypeMismatchException
[SerializableAttribute]
public sealed class PropertyTypeMismatchException : SmoException
[SerializableAttribute]
public ref class PropertyTypeMismatchException sealed : public SmoException
[<SealedAttribute>]
[<SerializableAttribute>]
type PropertyTypeMismatchException =
class
inherit SmoException
end
public final class PropertyTypeMismatchException extends SmoException
Тип PropertyTypeMismatchException обеспечивает доступ к следующим элементам.
Конструкторы
Имя | Описание | |
---|---|---|
![]() |
PropertyTypeMismatchException() () () () | Initializes a new instance of the PropertyTypeMismatchException class. |
![]() |
PropertyTypeMismatchException(String) | Initializes a new instance of the PropertyTypeMismatchException class with the specified message. |
![]() |
PropertyTypeMismatchException(String, Exception) | Initializes a new instance of the PropertyTypeMismatchException class with the specified message and specified inner exception. |
![]() |
PropertyTypeMismatchException(String, String, String) | Initializes a new instance of the PropertyTypeMismatchException class for the specified property, and specified received type and expected type. |
В начало
Свойства
Имя | Описание | |
---|---|---|
![]() |
Data | (Производный от Exception.) |
![]() |
ExpectedType | Gets the expected data type for the property. |
![]() |
HelpLink | Gets the Help link for further information from Microsoft about the SMO exception. (Производный от SmoException.) |
![]() |
HResult | (Производный от Exception.) |
![]() |
InnerException | (Производный от Exception.) |
![]() |
Message | Gets the message that describes the exception. (Переопределяет Exception. . :: . .Message.) |
![]() |
PropertyName | Gets the name of the property that received a value with the incorrect data type. |
![]() |
ReceivedType | Gets the data type that was received incorrectly by the property. |
![]() |
SmoExceptionType | Gets the type of SMO exception. (Переопределяет SmoException. . :: . .SmoExceptionType.) |
![]() |
Source | (Производный от Exception.) |
![]() |
StackTrace | (Производный от Exception.) |
![]() |
TargetSite | (Производный от Exception.) |
В начало
Методы
Имя | Описание | |
---|---|---|
![]() |
Equals | (Производный от Object.) |
![]() |
Finalize | (Производный от Object.) |
![]() |
GetBaseException | (Производный от Exception.) |
![]() |
GetHashCode | (Производный от Object.) |
![]() |
GetObjectData | Returns object data in order to facilitate remoting. (Переопределяет Exception. . :: . .GetObjectData(SerializationInfo, StreamingContext).) |
![]() |
GetType | (Производный от Exception.) |
![]() |
MemberwiseClone | (Производный от Object.) |
![]() |
SetHelpContext | Sets the Help context value for the referenced exception. (Производный от SmoException.) |
![]() |
ToString | (Производный от Exception.) |
В начало
Замечания
Thread Safety
Все общие статические члены этого типа (Shared в Microsoft Visual Basic) можно использовать в многопоточных операциях. Безопасная многопоточная работа с членами экземпляров типа не гарантируется.
Безопасность многопоточности
Любые открытые статический (Shared в Visual Basic) элементы этого типа потокобезопасны. Потокобезопасность с элементами экземпляров не гарантируется.