HttpRuntimeSection.RequireRootedSaveAsPath 속성
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
파일 이름이 정규화된 실제 파일 경로여야 하는지 여부를 나타내는 값을 가져오거나 설정합니다.
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 참조하세요.