PropertyReadOnlyException Class
Collapse the table of content
Expand the table of content

PropertyReadOnlyException Class

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

Namespace:  Microsoft.SqlServer.Management.Smo
Assembly:  Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)

public sealed class PropertyReadOnlyException : SmoException

The PropertyReadOnlyException type exposes the following members.

Public methodPropertyReadOnlyException()Initializes a new instance of the PropertyReadOnlyException class.
Public methodPropertyReadOnlyException(String)Initializes a new instance of the PropertyReadOnlyException class for the specified property.
Public methodPropertyReadOnlyException(String, Exception)Initializes a new instance of the PropertyReadOnlyException class with the specified message and the specified inner exception.

Public propertyData (Inherited from Exception.)
Public propertyHelpLinkGets the Help link for further information from Microsoft about the SMO exception. (Inherited from SmoException.)
Protected propertyHResult (Inherited from Exception.)
Public propertyInnerException (Inherited from Exception.)
Public propertyMessageGets the message that describes the current exception. (Overrides Exception.Message.)
Public propertyPropertyNameGets the name of the property that is read-only.
Public propertySmoExceptionTypeGets the type of SMO exception. (Overrides SmoException.SmoExceptionType.)
Public propertySource (Inherited from Exception.)
Public propertyStackTrace (Inherited from Exception.)
Public propertyTargetSite (Inherited from Exception.)

Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodGetBaseException (Inherited from Exception.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetObjectDataReturns object data to facilitate remoting. (Overrides Exception.GetObjectData(SerializationInfo, StreamingContext).)
Public methodGetType (Inherited from Exception.)
Protected methodMemberwiseClone (Inherited from Object.)
Protected methodSetHelpContextSets the Help context value for the referenced exception. (Inherited from SmoException.)
Public methodToString (Inherited from Exception.)

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.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Community Additions

© 2016 Microsoft