DesignerDataConnection Constructor (String^, String^, String^, Boolean)

 

Initializes a new instance of the DesignerDataConnection class with the specified name, data provider, and connection string, and indicates whether the connection was loaded from a configuration file.

Namespace:   System.ComponentModel.Design.Data
Assembly:  System.Design (in System.Design.dll)

public:
DesignerDataConnection(
	String^ name,
	String^ providerName,
	String^ connectionString,
	bool isConfigured
)

Parameters

name
Type: System::String^

The name associated with this connection.

providerName
Type: System::String^

The name of the provider object used to access the underlying data store.

connectionString
Type: System::String^

The string that specifies how to connect to the data store.

isConfigured
Type: System::Boolean

true to indicate the connection was created from information stored in the application's configuration file; otherwise, false.

Use this constructor when you need to specify the value of the IsConfigured property, such as when you are creating a DesignerDataConnection object from information stored in the application's configuration file. The IsConfigured property is set to the value of the isConfigured parameter.

.NET Framework
Available since 2.0
Return to top
Show: