Bagikan melalui


ConnectionStringSettings.Name Properti

Definisi

Mendapatkan atau mengatur ConnectionStringSettings nama.

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

Nilai Properti

Nilai string yang ditetapkan ke Name properti .

Atribut

Contoh

Contoh berikut menunjukkan cara menggunakan Name properti .

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

Berlaku untuk

Lihat juga