HttpCapabilitiesBase.EcmaScriptVersion プロパティとは? わかりやすく解説

Weblio 辞書 > コンピュータ > .NET Framework クラス ライブラリ リファレンス > HttpCapabilitiesBase.EcmaScriptVersion プロパティの意味・解説 

HttpCapabilitiesBase.EcmaScriptVersion プロパティ

メモ : このプロパティは、.NET Framework version 2.0新しく追加されたものです。

ブラウザサポートする ECMAScriptバージョン番号取得します

名前空間: System.Web.Configuration
アセンブリ: System.Web (system.web.dll 内)
構文構文

Dim instance As HttpCapabilitiesBase
Dim value As Version

value = instance.EcmaScriptVersion
public Version EcmaScriptVersion { get; }
public:
property Version^ EcmaScriptVersion {
    Version^ get ();
}
/** @property */
public Version get_EcmaScriptVersion ()
public function get EcmaScriptVersion
 () : Version

プロパティ
ブラウザサポートする ECMAScriptバージョン番号

使用例使用例

ブラウザサポートする ECMAScriptメジャー バージョン番号が 2 以上であるかどうか確認するコード例次に示します

<%@ Page Language="VB" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML
 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<script runat="server">
Dim bCaps As System.Web.HttpBrowserCapabilities

    Sub Page_Load(ByVal Sender As
 Object, ByVal e As EventArgs)
        bCaps = Request.Browser
        OutputLabel.Text = TestCaps()
    End Sub

    Function TestCaps() As String
        Dim sb As StringBuilder
        sb = New StringBuilder()
<br /><span space="preserve">...</span><br
 />        sb.AppendLine(TestECMAScriptVersion())
<br /><span space="preserve">...</span><br
 />        Return sb.ToString().Replace(Environment.NewLine,
 "<br />")
    End Function
<br /><span space="preserve">...</span><br
 /></script>
<html  >
<head runat="server">
    <title>Browser Capabilities Sample</title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        The current browser has the following capabilities:
        <br />
        <asp:Label ID="OutputLabel" runat="server"></asp:Label>
    </div>
    </form>
</body>
</html>
<%@ Page Language="C#" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<script runat="server">
System.Web.HttpBrowserCapabilities bCaps;

    void Page_Load(Object Sender, EventArgs e)
    {
        bCaps = Request.Browser;
        OutputLabel.Text = TestCaps();
    }   

    String TestCaps()
    {
        StringBuilder sb = new StringBuilder();
<br /><span space="preserve">...</span><br /> 
       sb.AppendLine(TestECMAScriptVersion());
<br /><span space="preserve">...</span><br /> 
       return sb.ToString().Replace(Environment.NewLine,"<br
 />");
    }
<br /><span space="preserve">...</span><br /></script>
<html  >
<head runat="server">
    <title>Browser Capabilities Sample</title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        The current browser has the following capabilities:
        <br />
        <asp:Label ID="OutputLabel" runat="server"></asp:Label>
    </div>
    </form>
</body>
</html>
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
HttpCapabilitiesBase クラス
HttpCapabilitiesBase メンバ
System.Web.Configuration 名前空間
その他の技術情報
ECMA公式 Web サイト



英和和英テキスト翻訳>> Weblio翻訳
英語⇒日本語日本語⇒英語
  

辞書ショートカット

すべての辞書の索引

HttpCapabilitiesBase.EcmaScriptVersion プロパティのお隣キーワード
検索ランキング

   

英語⇒日本語
日本語⇒英語
   



HttpCapabilitiesBase.EcmaScriptVersion プロパティのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

   
日本マイクロソフト株式会社日本マイクロソフト株式会社
© 2025 Microsoft.All rights reserved.

©2025 GRAS Group, Inc.RSS