PagesSection.ControlRenderingCompatibilityVersion 屬性

定義

取得或設定值,這個值會指定將與任何呈現 HTML 相容的 ASP.NET 版本。

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

屬性值

Version

將與任何呈現 HTML 相容的 ASP.NET 版本。

屬性

例外狀況

嘗試將這個屬性設定為 null

備註

這個值是由 controlRenderingCompatibilityVersion Web.config 檔案中 元素的 pages 屬性所設定。 此屬性的值是 屬性的 Control.RenderingCompatibility 預設值。 如需其使用方式的相關資訊,請參閱 Control.RenderingCompatibility 屬性。

適用於

另請參閱