Freigeben über


HttpRuntimeSection.RequireRootedSaveAsPath Eigenschaft

Definition

Dient zum Abrufen oder Festlegen eines Werts, der angibt, ob der Dateiname ein vollqualifizierter physischer Dateipfad sein muss.

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

Eigenschaftswert

truewenn der Dateiname ein vollqualifizierter physischer Dateipfad sein muss; andernfalls . false Der Standardwert ist true.

Attribute

Beispiele

Das folgende Beispiel zeigt, wie die RequireRootedSaveAsPath Eigenschaft verwendet wird.

// 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

Hinweise

Die RequireRootedSaveAsPath Eigenschaft gibt an, ob das Dateinamenargument für SaveAs Methoden ein rooter Pfad sein muss. Der ASP.NET Prozess muss über die Berechtigung zum Erstellen von Dateien am angegebenen Speicherort verfügen.

Weitere Informationen finden Sie unter den in der Configuration Klasse definierten Speichermethoden.

Gilt für: