语言

HttpRuntimeSection.RelaxedUrlToFileSystemMapping 属性

定义

获取或设置一个值,该值指示 HTTP 请求中的 URL 是否需要为有效的 Windows 文件路径。

public:
 property bool RelaxedUrlToFileSystemMapping { bool get(); void set(bool value); };
[System.Configuration.ConfigurationProperty("relaxedUrlToFileSystemMapping", DefaultValue=false)]
public bool RelaxedUrlToFileSystemMapping { get; set; }
[<System.Configuration.ConfigurationProperty("relaxedUrlToFileSystemMapping", DefaultValue=false)>]
member this.RelaxedUrlToFileSystemMapping : bool with get, set
Public Property RelaxedUrlToFileSystemMapping As Boolean

属性值

true 如果 URL 不一定符合 Windows 路径规则,则为 ;否则 false。 默认值为 false。

属性

注解

该 RelaxedUrlToFileSystemMapping 属性确定如何验证传入 HTTP 请求中的 URL。 如果此属性为 false此属性,则使用确定 Windows 文件系统路径是否有效的相同规则来验证 URL。

可以通过设置元素的属性RelaxedUrlToFileSystemMapping在配置文件中设置httpRuntime此值。 有关详细信息,请参阅 httpRuntime 元素(ASP.NET 设置架构)。

适用于