Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

ConnectionStringSettings.Name Property

Definition

Namespace:
System.Configuration
Assembly:
System.Configuration.ConfigurationManager.dll
Assembly:
System.Configuration.dll
Package:
System.Configuration.ConfigurationManager v11.0.0-preview.5.26302.115
Source:
ConnectionStringSettings.cs
Source:
ConnectionStringSettings.cs
Source:
ConnectionStringSettings.cs
Source:
ConnectionStringSettings.cs
Source:
ConnectionStringSettings.cs
Source:
ConnectionStringSettings.cs
Source:
ConnectionStringSettings.cs
Source:
ConnectionStringSettings.cs
Source:
ConnectionStringSettings.cs

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

Gets or sets the ConnectionStringSettings name.

public:
 property System::String ^ Name { System::String ^ get(); void set(System::String ^ value); };
[System.Configuration.ConfigurationProperty("name", DefaultValue="", Options=System.Configuration.ConfigurationPropertyOptions.IsKey | System.Configuration.ConfigurationPropertyOptions.IsRequired)]
public string Name { get; set; }
public string Name { get; set; }
[<System.Configuration.ConfigurationProperty("name", DefaultValue="", Options=System.Configuration.ConfigurationPropertyOptions.IsKey | System.Configuration.ConfigurationPropertyOptions.IsRequired)>]
member this.Name : string with get, set
member this.Name : string with get, set
Public Property Name As String

Property Value

The string value assigned to the Name property.

Attributes

Examples

The following example shows how to use the Name property.

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

Applies to

See also


Feedback

Was this page helpful?