ConnectionStringSettings.ConnectionString Proprietà

Definizione

Ottiene o imposta la stringa di connessione.

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

Valore della proprietà

Valore stringa assegnato alla proprietà ConnectionString.

Attributi

Esempio

Nell'esempio seguente viene illustrato come utilizzare la proprietà ConnectionString.

Console.WriteLine("  Connection String: \"{0}\"",
    cs.ConnectionString);
Console.WriteLine( _
"  Connection String: ""{0}""", cs.ConnectionString)

Si applica a

Vedi anche