Share via


HttpRuntimeSection.RequireRootedSaveAsPath Propiedad

Definición

Obtiene o establece un valor que indica si el nombre de archivo debe ser una ruta de acceso de archivo física completa.

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

Valor de propiedad

Boolean

Es true si el nombre de archivo debe ser una ruta de acceso de archivo física completa; en caso contrario, es false. El valor predeterminado es true.

Atributos

Ejemplos

En el ejemplo siguiente se muestra cómo usar la propiedad RequireRootedSaveAsPath.

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

Comentarios

La RequireRootedSaveAsPath propiedad especifica si el argumento de nombre de archivo para SaveAs los métodos debe ser una ruta de acceso raíz. El proceso de ASP.NET debe tener permiso para crear archivos en la ubicación especificada.

Para obtener más información, vea los métodos save definidos en la Configuration clase .

Se aplica a