Classe ConnectionCannotBeChangedException

The ConnectionCannotBeChangedException class is an exception that is raised when an unsuccessful attempt is made to change the connection to the instance of Microsoft SQL Server.

Espace de noms :  Microsoft.SqlServer.Management.Common
Assembly :  Microsoft.SqlServer.ConnectionInfo (dans Microsoft.SqlServer.ConnectionInfo.dll)

Syntaxe

'Déclaration
<SerializableAttribute> _
Public NotInheritable Class ConnectionCannotBeChangedException _
    Inherits ConnectionException
'Utilisation
Dim instance As ConnectionCannotBeChangedException
[SerializableAttribute]
public sealed class ConnectionCannotBeChangedException : ConnectionException
[SerializableAttribute]
public ref class ConnectionCannotBeChangedException sealed : public ConnectionException
[<SealedAttribute>]
[<SerializableAttribute>]
type ConnectionCannotBeChangedException =  
    class
        inherit ConnectionException
    end
public final class ConnectionCannotBeChangedException extends ConnectionException

Notes

Thread Safety

Tout membre statique public (Partagé dans Microsoft Visual Basic) de ce type est sûr dans le cadre des opérations à plusieurs threads. Tous les membres de l'instance ne sont pas garantis comme sûrs.

Hiérarchie d'héritage

System. . :: . .Object
  System. . :: . .Exception
    System. . :: . .SystemException
      Microsoft.SqlServer.Management.Common. . :: . .ConnectionException
        Microsoft.SqlServer.Management.Common..::..ConnectionCannotBeChangedException

Sécurité des threads

Tous les membres publics static (Shared dans Visual Basic) de ce type sont thread-safe. Il n'est pas garanti que les membres d'instance soient thread-safe.