Condividi tramite


Classe PropertyReadOnlyException

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

Gerarchia di ereditarietà

System. . :: . .Object
  System. . :: . .Exception
    Microsoft.SqlServer.Management.Common. . :: . .SqlServerManagementException
      Microsoft.SqlServer.Management.Smo. . :: . .SmoException
        Microsoft.SqlServer.Management.Smo..::..PropertyReadOnlyException

Spazio dei nomi  Microsoft.SqlServer.Management.Smo
Assembly:  Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)

Sintassi

'Dichiarazione
<SerializableAttribute> _
Public NotInheritable Class PropertyReadOnlyException _
    Inherits SmoException
'Utilizzo
Dim instance As PropertyReadOnlyException
[SerializableAttribute]
public sealed class PropertyReadOnlyException : SmoException
[SerializableAttribute]
public ref class PropertyReadOnlyException sealed : public SmoException
[<SealedAttribute>]
[<SerializableAttribute>]
type PropertyReadOnlyException =  
    class
        inherit SmoException
    end
public final class PropertyReadOnlyException extends SmoException

Nel tipo PropertyReadOnlyException sono esposti i membri seguenti.

Costruttori

  Nome Descrizione
Metodo pubblico PropertyReadOnlyException() () () () Initializes a new instance of the PropertyReadOnlyException class.
Metodo pubblico PropertyReadOnlyException(String) Initializes a new instance of the PropertyReadOnlyException class for the specified property.
Metodo pubblico PropertyReadOnlyException(String, Exception) Initializes a new instance of the PropertyReadOnlyException class with the specified message and the specified inner exception.

In alto

Proprietà

  Nome Descrizione
Proprietà pubblica Data Ereditato da Exception.
Proprietà pubblica HelpLink Gets the Help link for further information from Microsoft about the SMO exception. Ereditato da SmoException.
Proprietà protetta HResult Ereditato da Exception.
Proprietà pubblica InnerException Ereditato da Exception.
Proprietà pubblica Message Gets the message that describes the current exception. Esegue l'override di Exception. . :: . .Message.
Proprietà pubblica PropertyName Gets the name of the property that is read-only.
Proprietà pubblica SmoExceptionType Gets the type of SMO exception. Esegue l'override di SmoException. . :: . .SmoExceptionType.
Proprietà pubblica Source Ereditato da Exception.
Proprietà pubblica StackTrace Ereditato da Exception.
Proprietà pubblica TargetSite Ereditato da Exception.

In alto

Metodi

  Nome Descrizione
Metodo pubblico Equals Ereditato da Object.
Metodo protetto Finalize Ereditato da Object.
Metodo pubblico GetBaseException Ereditato da Exception.
Metodo pubblico GetHashCode Ereditato da Object.
Metodo pubblico GetObjectData Returns object data to facilitate remoting. Esegue l'override di Exception. . :: . .GetObjectData(SerializationInfo, StreamingContext).
Metodo pubblico GetType Ereditato da Exception.
Metodo protetto MemberwiseClone Ereditato da Object.
Metodo protetto SetHelpContext Sets the Help context value for the referenced exception. Ereditato da SmoException.
Metodo pubblico ToString Ereditato da Exception.

In alto

Osservazioni

Thread Safety

Tutti i membri statici pubblici (Shared in Microsoft Visual Basic) di questo tipo sono sicuri per le operazioni a thread multipli. Non è invece garantita la sicurezza dei membri dell'istanza.

Protezione dei thread

I membri static (Shared in Visual Basic) pubblici di questo tipo sono affidabili. Non è invece garantita la sicurezza dei membri dell'istanza.