PropertyReadOnlyException PropertyReadOnlyException PropertyReadOnlyException Class

Definition

The PropertyReadOnlyException class represents the exception that is raised when an attempt is made to set a read-only property.

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

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

PropertyReadOnlyException() PropertyReadOnlyException() PropertyReadOnlyException()

Initializes a new instance of the PropertyReadOnlyException class.

PropertyReadOnlyException(String) PropertyReadOnlyException(String) PropertyReadOnlyException(String)

Initializes a new instance of the PropertyReadOnlyException class for the specified property.

PropertyReadOnlyException(String, Exception) PropertyReadOnlyException(String, Exception) PropertyReadOnlyException(String, Exception)

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

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 current exception.

PropertyName PropertyName PropertyName

Gets the name of the property that is read-only.

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