HttpRuntimeSection.RequireRootedSaveAsPath Właściwość
Ważne
Niektóre informacje odnoszą się do produktu w wersji wstępnej, który może zostać znacząco zmodyfikowany przed wydaniem. Firma Microsoft nie udziela żadnych gwarancji, jawnych lub domniemanych, w odniesieniu do informacji podanych w tym miejscu.
Pobiera lub ustawia wartość wskazującą, czy nazwa pliku musi być w pełni kwalifikowaną ścieżką pliku fizycznego.
public:
property bool RequireRootedSaveAsPath { bool get(); void set(bool value); };
[System.Configuration.ConfigurationProperty("requireRootedSaveAsPath", DefaultValue=true)]
public bool RequireRootedSaveAsPath { get; set; }
[<System.Configuration.ConfigurationProperty("requireRootedSaveAsPath", DefaultValue=true)>]
member this.RequireRootedSaveAsPath : bool with get, set
Public Property RequireRootedSaveAsPath As Boolean
true
jeśli nazwa pliku musi być w pełni kwalifikowaną ścieżką pliku fizycznego; w przeciwnym razie , false
. Wartość domyślna to true
.
- Atrybuty
W poniższym przykładzie pokazano, jak używać RequireRootedSaveAsPath właściwości .
// Get the RequireRootedSaveAsPath property value.
Response.Write("RequireRootedSaveAsPath: " +
configSection.RequireRootedSaveAsPath + "<br>");
// Set the RequireRootedSaveAsPath property value to true.
configSection.RequireRootedSaveAsPath = true;
' Get the RequireRootedSaveAsPath property value.
Response.Write("RequireRootedSaveAsPath: " & _
configSection.RequireRootedSaveAsPath & "<br>")
' Set the RequireRootedSaveAsPath property value to true.
configSection.RequireRootedSaveAsPath = True
Właściwość RequireRootedSaveAsPath określa, czy argument nazwy pliku do SaveAs
metod musi być ścieżką rooted. Proces ASP.NET musi mieć uprawnienia do tworzenia plików w określonej lokalizacji.
Aby uzyskać więcej informacji, zobacz metody zapisywania Configuration zdefiniowane w klasie .
Produkt | Wersje |
---|---|
.NET Framework | 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8 |