PagesSection.ControlRenderingCompatibilityVersion Proprietà

Definizione

Ottiene o imposta un valore che specifica la versione di ASP.NET con cui sarà compatibile qualsiasi HTML di cui è stato eseguito il rendering.

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

Valore della proprietà

La versione di ASP.NET con cui sarà compatibile qualsiasi HTML di cui è stato eseguito il rendering.

Attributi

Eccezioni

È stato effettuato un tentativo di impostare la proprietà su null.

Commenti

Questo valore viene impostato dall'attributo controlRenderingCompatibilityVersion dell'elemento pages nel file Web.config. Il valore di questa proprietà è il valore predefinito per la Control.RenderingCompatibility proprietà . Per informazioni sull'utilizzo, vedere la Control.RenderingCompatibility proprietà .

Si applica a

Vedi anche