ApplicationInfo クラス

定義

実行中のアプリケーションに関する情報を提供します。 このクラスは継承できません。

public ref class ApplicationInfo sealed
[System.Serializable]
public sealed class ApplicationInfo
[<System.Serializable>]
type ApplicationInfo = class
Public NotInheritable Class ApplicationInfo
継承
ApplicationInfo
属性

次のコード例では、現在のプロセスに関連付けられている オブジェクトから オブジェクトのApplicationInfoApplicationManager配列を取得します。


<%@ Page Language="C#" %>
<%@ Import Namespace="System.Web.Hosting" %>

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

<script runat="server">
  protected void Page_PreRender(object sender, EventArgs e)
  {
    ApplicationManager appManager = ApplicationManager.GetApplicationManager();
    ApplicationInfo [] appInfo = appManager.GetRunningApplications();
    GridView1.DataSource = appInfo;
    GridView1.DataBind();
  }
</script>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
  <meta http-equiv="Content-Type" content="text/html" />
  <title>Application Info sample</title>
</head>
<body>
  <form id="form1" runat="server">
    <asp:GridView ID="GridView1" runat="server">
    </asp:GridView>
  </form>
</body>
</html>
<%@ Page Language="VB" %>
<%@ Import Namespace="System.Web.Hosting" %>

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

<script runat="server">
  Protected Sub Page_PreRender(ByVal sender As Object, ByVal e As EventArgs)
    Dim appManager As ApplicationManager
    appManager = ApplicationManager.GetApplicationManager()
   
    Dim appInfo As ApplicationInfo()
    appInfo = appManager.GetRunningApplications()
    
    GridView1.DataSource = appInfo
    GridView1.DataBind()
  End Sub
</script>

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
  <meta http-equiv="Content-Type" content="text/html" />
  <title>Untitled Page</title>
</head>
<body>
  <form id="form1" runat="server">
    <asp:GridView ID="GridView1" runat="server">
    </asp:GridView>
  </form>
</body>
</html>

注釈

オブジェクトは ApplicationInfo 、 クラスによってアプリケーションの ApplicationManager 実行に関する情報として使用されます。

プロパティ

ID

アプリケーションの一意の識別子を取得します。

PhysicalPath

アプリケーションのルートに対応する物理パスを取得します。

VirtualPath

アプリケーションのルートに対応する仮想パスを取得します。

メソッド

Equals(Object)

指定されたオブジェクトが現在のオブジェクトと等しいかどうかを判断します。

(継承元 Object)
GetHashCode()

既定のハッシュ関数として機能します。

(継承元 Object)
GetType()

現在のインスタンスの Type を取得します。

(継承元 Object)
MemberwiseClone()

現在の Object の簡易コピーを作成します。

(継承元 Object)
ToString()

現在のオブジェクトを表す文字列を返します。

(継承元 Object)

適用対象