WebApplicationInformation.FormatToString メソッドとは? わかりやすく解説

Weblio 辞書 > コンピュータ > .NET Framework クラス ライブラリ リファレンス > WebApplicationInformation.FormatToString メソッドの意味・解説 

WebApplicationInformation.FormatToString メソッド

メモ : このメソッドは、.NET Framework version 2.0新しく追加されたものです。

アプリケーション情報書式設定ます。

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

Public Sub FormatToString ( _
    formatter As WebEventFormatter _
)
Dim instance As WebApplicationInformation
Dim formatter As WebEventFormatter

instance.FormatToString(formatter)
public void FormatToString (
    WebEventFormatter formatter
)
public:
void FormatToString (
    WebEventFormatter^ formatter
)
public void FormatToString (
    WebEventFormatter formatter
)
public function FormatToString (
    formatter : WebEventFormatter
)

パラメータ

formatter

Web の状態イベント情報書式設定使用するタブインデント設定格納している WebEventFormatter。

解説解説
使用例使用例

カスタム情報所定形式にする方法次のコード例示します

    'Formats Web request event information.
    Public Overrides Sub
 FormatCustomEventDetails( _
 _
     ByVal formatter As WebEventFormatter)
        MyBase.FormatCustomEventDetails(formatter)

        ' Add custom data.
        formatter.AppendLine( _
        "Custom Application Information:")
        formatter.IndentationLevel += 1

        ' Display the application information.
        formatter.AppendLine(GetApplicationDomain())
        formatter.AppendLine(GetApplicationPath())
        formatter.AppendLine(GetApplicationVirtualPath())
        formatter.AppendLine(GetApplicationMachineName())
        formatter.AppendLine(GetApplicationTrustLevel())
        formatter.IndentationLevel -= 1
        formatter.AppendLine(eventInfo.ToString())
    End Sub 'FormatCustomEventDetails
End Class 'SampleWebApplicationInformation
 

//Formats Web request event information.
public override void FormatCustomEventDetails(
    WebEventFormatter formatter)
{
    base.FormatCustomEventDetails(formatter);

    // Add custom data.
    formatter.AppendLine("");
    formatter.AppendLine(
    "Custom Application Information:");
    formatter.IndentationLevel += 1;

    // Display the application information.
    formatter.AppendLine(GetApplicationDomain());
    formatter.AppendLine(GetApplicationPath());
    formatter.AppendLine(GetApplicationVirtualPath());
    formatter.AppendLine(GetApplicationMachineName());
    formatter.AppendLine(GetApplicationTrustLevel());
    formatter.IndentationLevel -= 1;
    formatter.AppendLine(eventInfo.ToString());
}
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
WebApplicationInformation クラス
WebApplicationInformation メンバ
System.Web.Management 名前空間


このページでは「.NET Framework クラス ライブラリ リファレンス」からWebApplicationInformation.FormatToString メソッドを検索した結果を表示しています。
Weblioに収録されているすべての辞書からWebApplicationInformation.FormatToString メソッドを検索する場合は、下記のリンクをクリックしてください。
 全ての辞書からWebApplicationInformation.FormatToString メソッドを検索

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

辞書ショートカット

すべての辞書の索引

WebApplicationInformation.FormatToString メソッドのお隣キーワード
検索ランキング

   

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



WebApplicationInformation.FormatToString メソッドのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

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

©2024 GRAS Group, Inc.RSS