HttpRuntimeSection.RequireRootedSaveAsPath Eigenschaft

Definition

Ruft einen Wert ab, der angibt, ob der Dateiname ein vollqualifizierter physikalischer Dateipfad sein muss, oder legt diesen fest.

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

Boolean

true, wenn der Dateiname ein vollqualifizierter physikalischer Dateipfad sein muss, andernfalls false. Der Standardwert ist true.

Attribute

Beispiele

Im folgenden Beispiel wird die Verwendung der RequireRootedSaveAsPath-Eigenschaft veranschaulicht.

// 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 Wurzelpfad sein muss. Der ASP.NET Prozess muss über die Berechtigung verfügen, Dateien an dem angegebenen Speicherort zu erstellen.

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

Gilt für