次の方法で共有


ConnectionStringSettings.Name プロパティ

定義

ConnectionStringSettings名を取得または設定します。

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

プロパティ値

Name プロパティに割り当てられた文字列値。

属性

次の例は、 Name プロパティの使用方法を示しています。

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

適用対象

こちらもご覧ください