RouteCollection.AppendTrailingSlash 属性
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取或设置一个值,该值指示在规范化虚拟路径时是否添加尾部斜杠。
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。