次の方法で共有


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

プロパティ値

レンダリングされた HTML と互換性のある ASP.NET バージョン。

属性

例外

このプロパティを null に設定しようとしました。

注釈

この値は、Web.config ファイル内のpages要素のcontrolRenderingCompatibilityVersion属性によって設定されます。 このプロパティの値は、 Control.RenderingCompatibility プロパティの既定値です。 使用方法については、 Control.RenderingCompatibility プロパティを参照してください。

適用対象

こちらもご覧ください