ConnectionStringSettings::ConnectionString Property

 

Gets or sets the connection string.

Namespace:   System.Configuration
Assembly:  System.Configuration (in System.Configuration.dll)

public:
[ConfigurationPropertyAttribute("connectionString", Options = ConfigurationPropertyOptions::IsRequired, 
	DefaultValue = "")]
property String^ ConnectionString {
	String^ get();
	void set(String^ value);
}

Property Value

Type: System::String^

The string value assigned to the ConnectionString property.

The following example shows how to use the ConnectionString property.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 2.0
Return to top
Show: