PropertyWriteException PropertyWriteException PropertyWriteException Class

Definition

The PropertyWriteException class represents the exception that is raised when an error occurs when setting the value of a property.

public ref class PropertyWriteException sealed : Microsoft::SqlServer::Management::Smo::SmoException
public sealed class PropertyWriteException : Microsoft.SqlServer.Management.Smo.SmoException
Public NotInheritable Class PropertyWriteException
Inherits SmoException
Inheritance
Microsoft.SqlServer.Management.Common.SqlServerManagementExceptionMicrosoft.SqlServer.Management.Common.SqlServerManagementExceptionMicrosoft.SqlServer.Management.Common.SqlServerManagementException
PropertyWriteExceptionPropertyWriteExceptionPropertyWriteException

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

PropertyWriteException() PropertyWriteException() PropertyWriteException()

Initializes a new instance of the PropertyWriteException class.

PropertyWriteException(String) PropertyWriteException(String) PropertyWriteException(String)

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

PropertyWriteException(String, Exception) PropertyWriteException(String, Exception) PropertyWriteException(String, Exception)

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

PropertyWriteException(String, String, String, String) PropertyWriteException(String, String, String, String) PropertyWriteException(String, String, String, String)

Initializes a new instance of the PropertyWriteException class with the specified property name, object kind, object name, and reason.

Properties

HelpLink HelpLink HelpLink

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

(Inherited from SmoException)
Message Message Message

Gets the message that describes the exception.

PropertyName PropertyName PropertyName

Gets the name of the property that received a value with the incorrect data type.

SmoExceptionType SmoExceptionType SmoExceptionType

Gets the type of SMO exception.

Methods

GetObjectData(SerializationInfo, StreamingContext) GetObjectData(SerializationInfo, StreamingContext) GetObjectData(SerializationInfo, StreamingContext)

Returns object data to facilitate remoting.

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

Sets the Help context value for the referenced exception.

(Inherited from SmoException)

Applies to