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

속성 값

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 클래스입니다.

적용 대상