Επεξεργασία

Κοινή χρήση μέσω


PagesSection.ControlRenderingCompatibilityVersion Property

Definition

Gets or sets a value that specifies the ASP.NET version that any rendered HTML will be compatible with.

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

Property Value

The ASP.NET version that any rendered HTML will be compatible with.

Attributes

Exceptions

An attempt was made to set this property to null.

Remarks

This value is set by the controlRenderingCompatibilityVersion attribute of the pages element in the Web.config file. The value of this property is the default value for the Control.RenderingCompatibility property. For information about how it is used, see the Control.RenderingCompatibility property.

Applies to

See also