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
Available since 2.0
Return to top