Поделиться через


Класс ConnectionNotSetException

The ConnectionNotSetException class is used to raise an exception when the connection passed to a DAC action, such as install, upgrade, or uninstall.

Иерархия наследования

System. . :: . .Object
  System. . :: . .Exception
    Microsoft.SqlServer.Management.Common. . :: . .SqlServerManagementException
      Microsoft.SqlServer.Management.Dac. . :: . .DacException
        Microsoft.SqlServer.Management.Dac. . :: . .DeploymentValidationException
          Microsoft.SqlServer.Management.Dac..::..ConnectionNotSetException

Пространство имен:  Microsoft.SqlServer.Management.Dac
Сборка:  Microsoft.SqlServer.Management.Dac (в Microsoft.SqlServer.Management.Dac.dll)

Синтаксис

'Декларация
<SerializableAttribute> _
Public NotInheritable Class ConnectionNotSetException _
    Inherits DeploymentValidationException
'Применение
Dim instance As ConnectionNotSetException
[SerializableAttribute]
public sealed class ConnectionNotSetException : DeploymentValidationException
[SerializableAttribute]
public ref class ConnectionNotSetException sealed : public DeploymentValidationException
[<SealedAttribute>]
[<SerializableAttribute>]
type ConnectionNotSetException =  
    class
        inherit DeploymentValidationException
    end
public final class ConnectionNotSetException extends DeploymentValidationException

Тип ConnectionNotSetException обеспечивает доступ к следующим элементам.

Конструкторы

  Имя Описание
Открытый метод ConnectionNotSetException(Exception) Initializes an instance of the ConnectionNotSetException class when there was an inner exception that caused this exception.
Открытый метод ConnectionNotSetException(String) Initializes an instance of the ConnectionNotSetException class with a message.

В начало

Свойства

  Имя Описание
Открытое свойство DacExceptionType Gets the type of the exception. (Производный от DacException.)
Открытое свойство Data (Производный от Exception.)
Открытое свойство HelpLink Gets a string with the URL help link that further explains the exception. (Производный от DacException.)
Защищенное свойство HResult (Производный от Exception.)
Открытое свойство InnerException (Производный от Exception.)
Открытое свойство Message (Производный от Exception.)
Открытое свойство Source (Производный от Exception.)
Открытое свойство StackTrace (Производный от Exception.)
Открытое свойство TargetSite (Производный от Exception.)

В начало

Методы

  Имя Описание
Открытый метод Equals (Производный от Object.)
Защищенный метод Finalize (Производный от Object.)
Открытый метод GetBaseException (Производный от Exception.)
Открытый метод GetHashCode (Производный от Object.)
Открытый метод GetObjectData (Производный от Exception.)
Открытый метод GetType (Производный от Exception.)
Защищенный метод Init Initializes provider properties. (Производный от DacException.)
Защищенный метод MemberwiseClone (Производный от Object.)
Защищенный метод SetHelpContext Sets the help context for the help link. (Производный от DacException.)
Открытый метод ToString (Производный от Exception.)

В начало

Безопасность многопоточности

Любые открытые статический (Shared в Visual Basic) элементы этого типа потокобезопасны. Потокобезопасность с элементами экземпляров не гарантируется.