PagesSection.ControlRenderingCompatibilityVersion Propriedade

Definição

Recebe ou define um valor que especifica a versão ASP.NET com a qual qualquer HTML renderizado será compatível.

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

Valor de Propriedade

A versão ASP.NET com a qual qualquer HTML renderizado será compatível.

Atributos

Exceções

Foi feita uma tentativa de definir esta propriedade como null.

Observações

Este valor é definido pelo controlRenderingCompatibilityVersion atributo do pages elemento no ficheiro Web.config. O valor desta propriedade é o valor padrão da Control.RenderingCompatibility propriedade. Para informações sobre como é utilizado, consulte a propriedade Control.RenderingCompatibility .

Aplica-se a

Ver também