PagesSection.ControlRenderingCompatibilityVersion Właściwość

Definicja

Pobiera lub ustawia wartość określającą wersję ASP.NET, z którą będzie zgodny dowolny renderowany kod 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

Wartość właściwości

Version

Wersja ASP.NET, z którą będzie zgodny dowolny renderowany kod HTML.

Atrybuty

Wyjątki

Podjęto próbę ustawienia tej właściwości na null.

Uwagi

Ta wartość jest ustawiana przez controlRenderingCompatibilityVersion atrybut pages elementu w pliku Web.config. Wartość tej właściwości jest wartością domyślną Control.RenderingCompatibility właściwości. Aby uzyskać informacje na temat sposobu jej użycia, zobacz Control.RenderingCompatibility właściwość .

Dotyczy

Zobacz też