HttpRuntimeSection.RequireRootedSaveAsPath Eigenschap

Definitie

Hiermee wordt een waarde opgehaald of ingesteld die aangeeft of de bestandsnaam een volledig gekwalificeerde fysieke bestandspad moet zijn.

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

Waarde van eigenschap

true als de bestandsnaam een volledig gekwalificeerde fysieke bestandspad moet zijn; anders, false. De standaardwaarde is true.

Kenmerken

Voorbeelden

In het volgende voorbeeld ziet u hoe u de RequireRootedSaveAsPath eigenschap gebruikt.

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

Opmerkingen

De RequireRootedSaveAsPath eigenschap geeft aan of het argument bestandsnaam voor SaveAs methoden een geroot pad moet zijn. Het ASP.NET proces moet gemachtigd zijn om bestanden op de opgegeven locatie te maken.

Zie de methoden voor opslaan die zijn gedefinieerd in de Configuration klasse voor meer informatie.

Van toepassing op