HttpRuntimeSection.RequireRootedSaveAsPath Vlastnost
Definice
Důležité
Některé informace platí pro předběžně vydaný produkt, který se může zásadně změnit, než ho výrobce nebo autor vydá. Microsoft neposkytuje žádné záruky, výslovné ani předpokládané, týkající se zde uváděných informací.
Získá nebo nastaví hodnotu, která určuje, zda název souboru musí být plně kvalifikovaná fyzická cesta k souboru.
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
Hodnota vlastnosti
truepokud název souboru musí být plně kvalifikovaná fyzická cesta k souboru; v opačném případě . false Výchozí hodnota je true.
- Atributy
Příklady
Následující příklad ukazuje, jak použít RequireRootedSaveAsPath vlastnost.
// 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
Poznámky
Vlastnost RequireRootedSaveAsPath určuje, zda název souboru argument metody SaveAs musí být kořenová cesta. Proces ASP.NET musí mít oprávnění k vytváření souborů v zadaném umístění.
Další informace najdete v metodách ukládání definovaných Configuration ve třídě.