Класс PropertyWriteException
The PropertyWriteException class represents the exception that is raised when an error occurs when setting the value of a property.
Иерархия наследования
System.Object
System.Exception
Microsoft.SqlServer.Management.Common.SqlServerManagementException
Microsoft.SqlServer.Management.Smo.SmoException
Microsoft.SqlServer.Management.Smo.PropertyWriteException
Пространство имен: Microsoft.SqlServer.Management.Smo
Сборка: Microsoft.SqlServer.Smo (в Microsoft.SqlServer.Smo.dll)
Синтаксис
'Декларация
<SerializableAttribute> _
Public NotInheritable Class PropertyWriteException _
Inherits SmoException
'Применение
Dim instance As PropertyWriteException
[SerializableAttribute]
public sealed class PropertyWriteException : SmoException
[SerializableAttribute]
public ref class PropertyWriteException sealed : public SmoException
[<SealedAttribute>]
[<SerializableAttribute>]
type PropertyWriteException =
class
inherit SmoException
end
public final class PropertyWriteException extends SmoException
Тип PropertyWriteException обеспечивает доступ к следующим элементам.
Конструкторы
Имя | Описание | |
---|---|---|
![]() |
PropertyWriteException() | Initializes a new instance of the PropertyWriteException class. |
![]() |
PropertyWriteException(String) | Initializes a new instance of the PropertyWriteException class with the specified message. |
![]() |
PropertyWriteException(String, Exception) | Initializes a new instance of the PropertyWriteException class with the specified message and specified inner exception. |
![]() |
PropertyWriteException(String, String, String, String) | Initializes a new instance of the PropertyWriteException class with the specified property name, object kind, object name, and reason. |
В начало
Свойства
Имя | Описание | |
---|---|---|
![]() |
Data | (Производный от Exception.) |
![]() |
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. |
![]() |
SmoExceptionType | Gets the type of SMO exception. (Переопределяет SmoException.SmoExceptionType.) |
![]() |
Source | (Производный от Exception.) |
![]() |
StackTrace | (Производный от Exception.) |
![]() |
TargetSite | (Производный от Exception.) |
В начало
Методы
Имя | Описание | |
---|---|---|
![]() |
Equals | (Производный от Object.) |
![]() |
GetBaseException | (Производный от Exception.) |
![]() |
GetHashCode | (Производный от Object.) |
![]() |
GetObjectData | Returns object data to facilitate remoting. (Переопределяет Exception.GetObjectData(SerializationInfo, StreamingContext).) |
![]() |
GetType | (Производный от Exception.) |
![]() |
SetHelpContext | Sets the Help context value for the referenced exception. (Производный от SmoException.) |
![]() |
ToString | (Производный от Exception.) |
В начало
Замечания
Thread Safety
Все общие статические члены этого типа (Shared в Microsoft Visual Basic) можно использовать в многопоточных операциях. Потокобезопасная работа с членами экземпляров типа не гарантируется.
Примеры
Безопасность многопоточности
Любые открытые статический (Shared в Visual Basic) элементы этого типа потокобезопасны. Потокобезопасность с элементами экземпляров не гарантируется.