PagesSection.ControlRenderingCompatibilityVersion Свойство
Определение
Важно!
Некоторые сведения относятся к предварительной версии продукта, в которую до выпуска могут быть внесены существенные изменения. Майкрософт не предоставляет никаких гарантий, явных или подразумеваемых, относительно приведенных здесь сведений.
Возвращает или задает значение, указывающее версию ASP.NET, с которым будет совместим любой отрисованный HTML.
public:
property Version ^ ControlRenderingCompatibilityVersion { Version ^ get(); void set(Version ^ value); };
[System.ComponentModel.TypeConverter(typeof(System.Web.Configuration.VersionConverter))]
[System.Configuration.ConfigurationProperty("controlRenderingCompatibilityVersion", DefaultValue="4.0")]
[System.Configuration.ConfigurationValidator(typeof(System.Web.Configuration.VersionValidator))]
public Version ControlRenderingCompatibilityVersion { get; set; }
[<System.ComponentModel.TypeConverter(typeof(System.Web.Configuration.VersionConverter))>]
[<System.Configuration.ConfigurationProperty("controlRenderingCompatibilityVersion", DefaultValue="4.0")>]
[<System.Configuration.ConfigurationValidator(typeof(System.Web.Configuration.VersionValidator))>]
member this.ControlRenderingCompatibilityVersion : Version with get, set
Public Property ControlRenderingCompatibilityVersion As Version
Значение свойства
Версия ASP.NET, с которым будет совместим любой отрисованный HTML.
- Атрибуты
Исключения
Предпринята попытка задать для этого свойства значение null.
Комментарии
Это значение задается атрибутом controlRenderingCompatibilityVersionpages элемента в файле Web.config. Значение этого свойства является значением по умолчанию для Control.RenderingCompatibility свойства. Сведения о том, как он используется, см. в Control.RenderingCompatibility разделе свойства.