ConnectionNotSetException Class

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

Inheritance Hierarchy

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

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

Syntax

'Declaration
<SerializableAttribute> _
Public NotInheritable Class ConnectionNotSetException _
    Inherits DeploymentValidationException
'Usage
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

The ConnectionNotSetException type exposes the following members.

Constructors

  Name Description
Public method ConnectionNotSetException(Exception) Initializes an instance of the ConnectionNotSetException class when there was an inner exception that caused this exception.
Public method ConnectionNotSetException(String) Initializes an instance of the ConnectionNotSetException class with a message.

Top

Properties

  Name Description
Public property DacExceptionType Gets the type of the exception. (Inherited from DacException.)
Public property Data (Inherited from Exception.)
Public property HelpLink Gets a string with the URL help link that further explains the exception. (Inherited from DacException.)
Protected property HResult (Inherited from Exception.)
Public property InnerException (Inherited from Exception.)
Public property Message (Inherited from Exception.)
Public property Source (Inherited from Exception.)
Public property StackTrace (Inherited from Exception.)
Public property TargetSite (Inherited from Exception.)

Top

Methods

  Name Description
Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public method GetBaseException (Inherited from Exception.)
Public method GetHashCode (Inherited from Object.)
Public method GetObjectData (Inherited from Exception.)
Public method GetType (Inherited from Exception.)
Protected method Init Initializes provider properties. (Inherited from DacException.)
Protected method MemberwiseClone (Inherited from Object.)
Protected method SetHelpContext Sets the help context for the help link. (Inherited from DacException.)
Public method ToString (Inherited from Exception.)

Top

Thread Safety

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

See Also

Reference

Microsoft.SqlServer.Management.Dac Namespace