Condividi tramite


Classe PropertyNotSetException

The exception that is raised when a process requests a property that has not been set on the connection to the server.

Gerarchia di ereditarietà

Object
  Exception
    SystemException
      Microsoft.SqlServer.Management.Common.ConnectionException
        Microsoft.SqlServer.Management.Common.PropertyNotSetException

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

Sintassi

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

Nel tipo PropertyNotSetException sono esposti i membri seguenti.

Costruttori

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

Torna all'inizio

Proprietà

  Nome Descrizione
Proprietà pubblica Data Ereditato da Exception.
Proprietà pubblica HelpLink Ereditato da Exception.
Proprietà pubblica HResult Ereditato da Exception.
Proprietà pubblica InnerException Ereditato da Exception.
Proprietà pubblica Message Ereditato da Exception.
Proprietà pubblica Source Ereditato da Exception.
Proprietà pubblica StackTrace Ereditato da Exception.
Proprietà pubblica TargetSite Ereditato da Exception.

Torna all'inizio

Metodi

  Nome Descrizione
Metodo pubblico Equals Ereditato da Object.
Metodo pubblico GetBaseException Ereditato da Exception.
Metodo pubblico GetHashCode Ereditato da Object.
Metodo pubblico GetObjectData Criticità per la sicurezza. Ereditato da Exception.
Metodo pubblico GetType Ereditato da Exception.
Metodo pubblico ToString Ereditato da Exception.

Torna all'inizio

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.

Esempi

Gestione delle eccezioni SMO

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.

Vedere anche

Riferimento

Spazio dei nomi Microsoft.SqlServer.Management.Common