语言

RouteCollection.AppendTrailingSlash 属性

定义

获取或设置一个值,该值指示在规范化虚拟路径时是否添加尾部斜杠。

public:
 property bool AppendTrailingSlash { bool get(); void set(bool value); };
public bool AppendTrailingSlash { get; set; }
member this.AppendTrailingSlash : bool with get, set
Public Property AppendTrailingSlash As Boolean

属性值

true 如果添加了尾部斜杠,则为否则,为 false. 默认值为 false。

适用于