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

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

WebProcessInformation.FormatToString メソッド

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

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

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

Public Sub FormatToString ( _
    formatter As WebEventFormatter _
)
Dim instance As WebProcessInformation
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 System.Web.Management.WebEventFormatter)
    MyBase.FormatCustomEventDetails(formatter)
   
    ' Add custom data.
    formatter.AppendLine("")
    formatter.AppendLine( _
    "Custom Process Information:")
    formatter.IndentationLevel += 1

    ' Display the process information.
    formatter.AppendLine(GetAccountName())
    formatter.AppendLine(GetProcessId())
    formatter.AppendLine(GetProcessName())
    formatter.IndentationLevel -= 1
    formatter.AppendLine(eventInfo.ToString())
End Sub 'FormatToString
//Formats Web request event information.
public override void FormatCustomEventDetails(
    WebEventFormatter formatter)
{
    base.FormatCustomEventDetails(formatter);

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

    // Display the process information.
    formatter.AppendLine(GetAccountName());
    formatter.AppendLine(GetProcessId());
    formatter.AppendLine(GetProcessName());
    formatter.IndentationLevel -= 1;
    formatter.AppendLine(eventInfo.ToString());
}
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
WebProcessInformation クラス
WebProcessInformation メンバ
System.Web.Management 名前空間


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

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

辞書ショートカット

すべての辞書の索引

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

   

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



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

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

©2025 GRAS Group, Inc.RSS