Share via


DataConnectionPromptDialog Class

Definition

Represents an implementation of the IVsDataConnectionPromptDialog interface.

public ref class DataConnectionPromptDialog : System::Windows::Forms::Form, IDisposable, Microsoft::VisualStudio::Data::Core::IVsDataSiteableObject<IServiceProvider ^>, Microsoft::VisualStudio::Data::Services::SupportEntities::IVsDataConnectionPromptDialog
public class DataConnectionPromptDialog : System.Windows.Forms.Form, IDisposable, Microsoft.VisualStudio.Data.Core.IVsDataSiteableObject<IServiceProvider>, Microsoft.VisualStudio.Data.Services.SupportEntities.IVsDataConnectionPromptDialog
type DataConnectionPromptDialog = class
    inherit Form
    interface IVsDataConnectionPromptDialog
    interface IDisposable
    interface IVsDataSiteableObject<IServiceProvider>
Public Class DataConnectionPromptDialog
Inherits Form
Implements IDisposable, IVsDataConnectionPromptDialog, IVsDataSiteableObject(Of IServiceProvider)
Inheritance
DataConnectionPromptDialog
Implements

Constructors

DataConnectionPromptDialog()

Initializes a new instance of the DataConnectionPromptDialog class.

Properties

ConnectionSupport

Gets the IVsDataConnectionSupport object on which the data provider should update the ConnectionString property.

ConnectionUIProperties

Gets the current IVsDataConnectionUIProperties object instance used in this class.

ServiceProvider

Gets the current instance of the service provider object used in this class.

Methods

CreateConnectionUIProperties()

Creates a new IVsDataConnectionUIProperties object instance.

LoadProperties()

Loads properties from the IVsDataConnectionSupport current object instance used in this class into the dialog box controls.

OnFormClosing(FormClosingEventArgs)

Handles specific actions that occur when the dialog box is closed, such as saving properties from the dialog box controls, saving the new connection string, and opening the connection if the OK button of the dialog box is clicked.

OnLoad(EventArgs)

Loads properties from the IVsDataConnectionSupport current object instance used in this class into the dialog box controls.

SaveProperties()

Saves properties from the prompt dialog box to the IVsDataConnectionSupport current object instance used in this class.

ShowDialog(IVsDataConnectionSupport)

Displays the prompt dialog box, given a specific IVsDataConnectionSupport instance.

Explicit Interface Implementations

IVsDataSiteableObject<IServiceProvider>.Site

Applies to