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

Debug.Indent メソッド

現在の IndentLevel を 1 だけ増やします

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

<ConditionalAttribute("DEBUG")> _
Public Shared Sub Indent
Debug.Indent
[ConditionalAttribute("DEBUG")] 
public static void Indent
 ()
[ConditionalAttribute(L"DEBUG")] 
public:
static void Indent ()
/** @attribute ConditionalAttribute("DEBUG") */ 
public static void Indent
 ()
ConditionalAttribute("DEBUG") 
public static function Indent
 ()
使用例使用例

インデント レベル設定しデバッグ メッセージ出力する例を次に示します

Debug.WriteLine("List of errors:")
Debug.Indent()
Debug.WriteLine("Error 1: File not found")
Debug.WriteLine("Error 2: Directory not found")
Debug.Unindent()
Debug.WriteLine("End of list of errors")
Debug.WriteLine("List of errors:");
Debug.Indent();
Debug.WriteLine("Error 1: File not found");
Debug.WriteLine("Error 2: Directory not found");
Debug.Unindent();
Debug.WriteLine("End of list of errors");
  
Debug::WriteLine( "List of errors:" );
Debug::Indent();
Debug::WriteLine( "Error 1: File not found" );
Debug::WriteLine( "Error 2: Directory not found" );
Debug::Unindent();
Debug::WriteLine( "End of list of errors" );
Debug.WriteLine("List of errors:");
Debug.Indent();
Debug.WriteLine("Error 1: File not found");
Debug.WriteLine("Error 2: Directory not found");
Debug.Unindent();
Debug.WriteLine("End of list of errors");
Debug.WriteLine("List of errors:");
Debug.Indent();
Debug.WriteLine("Error 1: File not found");
Debug.WriteLine("Error 2: Directory not found");
Debug.Unindent();
Debug.WriteLine("End of list of errors");
  

この例外によって、次の出力生成されます。

プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照



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

辞書ショートカット

すべての辞書の索引

「Debug.Indent メソッド」の関連用語

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

   

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



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

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

©2024 GRAS Group, Inc.RSS