PagesSection.ControlRenderingCompatibilityVersion 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得或設定一個值,指定任何渲染後 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
屬性值
任何渲染的 HTML 都能相容的 ASP.NET 版本。
- 屬性
例外狀況
嘗試將此性質設為 null。
備註
此值由 controlRenderingCompatibilityVersion Web.config 檔案中元素的屬性 pages 設定。 該財產的價值即為該 Control.RenderingCompatibility 財產的預設價值。 有關其使用方式的資訊,請參閱該物業。Control.RenderingCompatibility