Export (0) Print
Expand All

ConnectionStringSettings.Name Property

Gets or sets the ConnectionStringSettings name.

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

[ConfigurationPropertyAttribute("name", Options = ConfigurationPropertyOptions.None|ConfigurationPropertyOptions.IsRequired|ConfigurationPropertyOptions.IsKey, 
	DefaultValue = "")]
public string Name { get; set; }

Property Value

Type: System.String
The string value assigned to the Name property.

The following example shows how to use the Name property.

Console.WriteLine("  Name: {0}", cs.Name);

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Show:
© 2015 Microsoft