HttpRuntimeSection.RequireRootedSaveAsPath プロパティ

定義

ファイル名が完全修飾物理ファイル パスである必要があるかどうかを示す値を取得または設定します。

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

プロパティ値

true ファイル名が完全修飾物理ファイル パスである必要がある場合。それ以外の場合は false。 既定値は true です。

属性

次の例は、 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

注釈

RequireRootedSaveAsPath プロパティは、SaveAs メソッドのファイル名引数をルートパスにする必要があるかどうかを指定します。 ASP.NET プロセスには、指定した場所にファイルを作成するためのアクセス許可が必要です。

詳細については、 Configuration クラスで定義されている保存メソッドを参照してください。

適用対象