PagesSection.ControlRenderingCompatibilityVersion Vlastnost

Definice

Získá nebo nastaví hodnotu, která určuje ASP.NET verzi, se kterou bude všechny vykreslené HTML kompatibilní.

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

Hodnota vlastnosti

Version

Verze ASP.NET, se kterou budou všechny vykreslené kódy HTML kompatibilní.

Atributy

Výjimky

Došlo k pokusu o nastavení této vlastnosti na null.

Poznámky

Tato hodnota je nastavena controlRenderingCompatibilityVersion atributem pages prvku v souboru Web.config. Hodnota této vlastnosti je výchozí hodnota vlastnosti Control.RenderingCompatibility . Informace o tom, jak se používá, najdete v Control.RenderingCompatibility vlastnosti.

Platí pro

Viz také