PagesSection.ControlRenderingCompatibilityVersion 属性

定义

获取或设置一个值,该值指定将与任何呈现的 HTML 兼容的 ASP.NET 版本。Gets or sets a value that specifies the ASP.NET version that any rendered HTML will be compatible with.

public:
 property Version ^ ControlRenderingCompatibilityVersion { Version ^ get(); void set(Version ^ value); };
[System.ComponentModel.TypeConverter(typeof(System.Web.Configuration.VersionConverter))]
[System.Configuration.ConfigurationProperty("controlRenderingCompatibilityVersion", DefaultValue=Mono.Cecil.CustomAttributeArgument)]
[System.Configuration.ConfigurationValidator(typeof(System.Web.Configuration.VersionValidator))]
public Version ControlRenderingCompatibilityVersion { get; set; }
member this.ControlRenderingCompatibilityVersion : Version with get, set
Public Property ControlRenderingCompatibilityVersion As Version

属性值

将与任何呈现的 HTML 兼容的 ASP.NET 版本。The ASP.NET version that any rendered HTML will be compatible with.

属性

异常

尝试将该属性设置为 nullAn attempt was made to set this property to null.

注解

此值由controlRenderingCompatibilityVersion web.config 文件中pages元素的属性设置。This value is set by the controlRenderingCompatibilityVersion attribute of the pages element in the Web.config file. 此属性的值为Control.RenderingCompatibility属性的默认值。The value of this property is the default value for the Control.RenderingCompatibility property. 有关使用方法的信息, 请参见Control.RenderingCompatibility属性。For information about how it is used, see the Control.RenderingCompatibility property.

适用于

另请参阅