SessionStateSection.AllowCustomSqlDatabase Egenskap

Definition

Hämtar eller anger ett värde som anger om användaren kan ange det ursprungliga katalogvärdet i SqlConnectionString egenskapen.

public:
 property bool AllowCustomSqlDatabase { bool get(); void set(bool value); };
[System.Configuration.ConfigurationProperty("allowCustomSqlDatabase", DefaultValue=false)]
public bool AllowCustomSqlDatabase { get; set; }
[<System.Configuration.ConfigurationProperty("allowCustomSqlDatabase", DefaultValue=false)>]
member this.AllowCustomSqlDatabase : bool with get, set
Public Property AllowCustomSqlDatabase As Boolean

Egenskapsvärde

trueom användaren har tillåtelse att ange katalogen; annars . false Standardvärdet är false.

Attribut

Exempel

Följande kodexempel visar hur du AllowCustomSqlDatabase hämtar egenskapen. Se kodexemplet i klassavsnittet SessionStateSection för att lära dig hur du kommer åt SessionStateSection objektet.

// Display the current AllowCustomSqlDatabase property value.
Console.WriteLine("AllowCustomSqlDatabase: {0}",
  sessionStateSection.AllowCustomSqlDatabase);
' Display the current AllowCustomSqlDatabase property value.
Console.WriteLine("AllowCustomSqlDatabase: {0}", _
  sessionStateSection.AllowCustomSqlDatabase)

Gäller för