MvcCompatibilityOptions.CompatibilityVersion 属性

定义

获取或设置应用程序的已配置 CompatibilityVersion

public:
 property Microsoft::AspNetCore::Mvc::CompatibilityVersion CompatibilityVersion { Microsoft::AspNetCore::Mvc::CompatibilityVersion get(); void set(Microsoft::AspNetCore::Mvc::CompatibilityVersion value); };
public Microsoft.AspNetCore.Mvc.CompatibilityVersion CompatibilityVersion { get; set; }
member this.CompatibilityVersion : Microsoft.AspNetCore.Mvc.CompatibilityVersion with get, set
Public Property CompatibilityVersion As CompatibilityVersion

属性值

默认值为 Version_3_0

适用于