IndentedTextWriter クラス

定義

タブ文字列トークンを使用して、新しい行にインデントを設定できるテキスト ライターを提供します。

public ref class IndentedTextWriter : System::IO::TextWriter
public class IndentedTextWriter : System.IO.TextWriter
type IndentedTextWriter = class
    inherit TextWriter
Public Class IndentedTextWriter
Inherits TextWriter
継承
IndentedTextWriter

次のコード例では、 を IndentedTextWriter 使用して、さまざまなレベルのインデントでテキストを書き込む方法を示します。

#using <System.Drawing.dll>
#using <System.Windows.Forms.dll>
#using <System.dll>

using namespace System;
using namespace System::CodeDom;
using namespace System::CodeDom::Compiler;
using namespace System::ComponentModel;
using namespace System::IO;
using namespace System::Windows::Forms;
public ref class Form1: public System::Windows::Forms::Form
{
private:
   System::Windows::Forms::TextBox^ textBox1;

   String^ CreateMultilevelIndentString()
   {
      
      // Creates a TextWriter to use as the base output writer.
      System::IO::StringWriter^ baseTextWriter = gcnew System::IO::StringWriter;
      
      // Create an IndentedTextWriter and set the tab string to use 
      // as the indentation string for each indentation level.
      System::CodeDom::Compiler::IndentedTextWriter^ indentWriter = gcnew IndentedTextWriter( baseTextWriter,"    " );
      
      // Sets the indentation level.
      indentWriter->Indent = 0;
      
      // Output test strings at stepped indentations through a recursive loop method.
      WriteLevel( indentWriter, 0, 5 );
      
      // Return the resulting string from the base StringWriter.
      return baseTextWriter->ToString();
   }


   void WriteLevel( IndentedTextWriter^ indentWriter, int level, int totalLevels )
   {
      
      // Output a test string with a new-line character at the end.
      indentWriter->WriteLine( "This is a test phrase. Current indentation level: {0}", level );
      
      // If not yet at the highest recursion level, call this output method for the next level of indentation.
      if ( level < totalLevels )
      {
         
         // Increase the indentation count for the next level of indented output.
         indentWriter->Indent++;
         
         // Call the WriteLevel method to write test output for the next level of indentation.
         WriteLevel( indentWriter, level + 1, totalLevels );
         
         // Restores the indentation count for this level after the recursive branch method has returned.
         indentWriter->Indent--;
      }
      else
      // Outputs a string using the WriteLineNoTabs method.
            indentWriter->WriteLineNoTabs( "This is a test phrase written with the IndentTextWriter.WriteLineNoTabs method." );
      // Outputs a test string with a new-line character at the end.
      indentWriter->WriteLine( "This is a test phrase. Current indentation level: {0}", level );
   }


   void button1_Click( Object^ /*sender*/, System::EventArgs^ /*e*/ )
   {
      textBox1->Text = CreateMultilevelIndentString();
   }


public:
   Form1()
   {
      System::Windows::Forms::Button^ button1 = gcnew System::Windows::Forms::Button;
      this->textBox1 = gcnew System::Windows::Forms::TextBox;
      this->SuspendLayout();
      this->textBox1->Anchor = (System::Windows::Forms::AnchorStyles)(System::Windows::Forms::AnchorStyles::Top | System::Windows::Forms::AnchorStyles::Bottom | System::Windows::Forms::AnchorStyles::Left | System::Windows::Forms::AnchorStyles::Right);
      this->textBox1->Location = System::Drawing::Point( 8, 40 );
      this->textBox1->Multiline = true;
      this->textBox1->Name = "textBox1";
      this->textBox1->Size = System::Drawing::Size( 391, 242 );
      this->textBox1->TabIndex = 0;
      this->textBox1->Text = "";
      button1->Location = System::Drawing::Point( 11, 8 );
      button1->Name = "button1";
      button1->Size = System::Drawing::Size( 229, 23 );
      button1->TabIndex = 1;
      button1->Text = "Generate string using IndentedTextWriter";
      button1->Click += gcnew System::EventHandler( this, &Form1::button1_Click );
      this->AutoScaleBaseSize = System::Drawing::Size( 5, 13 );
      this->ClientSize = System::Drawing::Size( 407, 287 );
      this->Controls->Add( button1 );
      this->Controls->Add( this->textBox1 );
      this->Name = "Form1";
      this->Text = "IndentedTextWriter example";
      this->ResumeLayout( false );
   }

};


[STAThread]
int main()
{
   Application::Run( gcnew Form1 );
}
using System;
using System.CodeDom;
using System.CodeDom.Compiler;
using System.ComponentModel;
using System.IO;
using System.Windows.Forms;

namespace IndentedTextWriterExample
{
    public class Form1 : System.Windows.Forms.Form
    {
        private System.Windows.Forms.TextBox textBox1;

        private string CreateMultilevelIndentString()
        {
            // Creates a TextWriter to use as the base output writer.
            System.IO.StringWriter baseTextWriter = new System.IO.StringWriter();

            // Create an IndentedTextWriter and set the tab string to use
            // as the indentation string for each indentation level.
            System.CodeDom.Compiler.IndentedTextWriter indentWriter = new IndentedTextWriter(baseTextWriter, "    ");

            // Sets the indentation level.
            indentWriter.Indent = 0;

            // Output test strings at stepped indentations through a recursive loop method.
            WriteLevel(indentWriter, 0, 5);

            // Return the resulting string from the base StringWriter.
            return baseTextWriter.ToString();
        }

        private void WriteLevel(IndentedTextWriter indentWriter, int level, int totalLevels)
        {
            // Output a test string with a new-line character at the end.
            indentWriter.WriteLine("This is a test phrase. Current indentation level: "+level.ToString());

            // If not yet at the highest recursion level, call this output method for the next level of indentation.
            if( level < totalLevels )
            {
                // Increase the indentation count for the next level of indented output.
                indentWriter.Indent++;

                // Call the WriteLevel method to write test output for the next level of indentation.
                WriteLevel(indentWriter, level+1, totalLevels);

                // Restores the indentation count for this level after the recursive branch method has returned.
                indentWriter.Indent--;
            }
            else
            {
                // Outputs a string using the WriteLineNoTabs method.
                indentWriter.WriteLineNoTabs("This is a test phrase written with the IndentTextWriter.WriteLineNoTabs method.");
            }

            // Outputs a test string with a new-line character at the end.
            indentWriter.WriteLine("This is a test phrase. Current indentation level: "+level.ToString());
        }

        private void button1_Click(object sender, System.EventArgs e)
        {
            textBox1.Text = CreateMultilevelIndentString();
        }

        public Form1()
        {
            System.Windows.Forms.Button button1 = new System.Windows.Forms.Button();
            this.textBox1 = new System.Windows.Forms.TextBox();
            this.SuspendLayout();
            this.textBox1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
                | System.Windows.Forms.AnchorStyles.Left)
                | System.Windows.Forms.AnchorStyles.Right)));
            this.textBox1.Location = new System.Drawing.Point(8, 40);
            this.textBox1.Multiline = true;
            this.textBox1.Name = "textBox1";
            this.textBox1.Size = new System.Drawing.Size(391, 242);
            this.textBox1.TabIndex = 0;
            this.textBox1.Text = "";
            button1.Location = new System.Drawing.Point(11, 8);
            button1.Name = "button1";
            button1.Size = new System.Drawing.Size(229, 23);
            button1.TabIndex = 1;
            button1.Text = "Generate string using IndentedTextWriter";
            button1.Click += new System.EventHandler(this.button1_Click);
            this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
            this.ClientSize = new System.Drawing.Size(407, 287);
            this.Controls.Add(button1);
            this.Controls.Add(this.textBox1);
            this.Name = "Form1";
            this.Text = "IndentedTextWriter example";
            this.ResumeLayout(false);
        }

        [STAThread]
        static void Main()
        {
            Application.Run(new Form1());
        }
    }
}
Imports System.CodeDom
Imports System.CodeDom.Compiler
Imports System.ComponentModel
Imports System.IO
Imports System.Windows.Forms

Public Class Form1
   Inherits System.Windows.Forms.Form
   Private textBox1 As System.Windows.Forms.TextBox 
   
   Private Function CreateMultilevelIndentString() As String
        ' Create a TextWriter to use as the base output writer.
        Dim baseTextWriter As New System.IO.StringWriter
      
        ' Create an IndentedTextWriter and set the tab string to use 
        ' as the indentation string for each indentation level.
        Dim indentWriter = New IndentedTextWriter(baseTextWriter, "    ")

        ' Set the indentation level.
        indentWriter.Indent = 0

        ' Output test strings at stepped indentations through a recursive loop method.
        WriteLevel(indentWriter, 0, 5)
      
        ' Return the resulting string from the base StringWriter.
        Return baseTextWriter.ToString()
    End Function

    Private Sub WriteLevel(ByVal indentWriter As IndentedTextWriter, ByVal level As Integer, ByVal totalLevels As Integer)
        ' Outputs a test string with a new-line character at the end.
        indentWriter.WriteLine(("This is a test phrase. Current indentation level: " + level.ToString()))

        ' If not yet at the highest recursion level, call this output method for the next level of indentation.
        If level < totalLevels Then
            ' Increase the indentation count for the next level of indented output.
            indentWriter.Indent += 1

            ' Call the WriteLevel method to write test output for the next level of indentation.
            WriteLevel(indentWriter, level + 1, totalLevels)

            ' Restores the indentation count for this level after the recursive branch method has returned.
            indentWriter.Indent -= 1

        Else
            ' Output a string using the WriteLineNoTabs method.
            indentWriter.WriteLineNoTabs("This is a test phrase written with the IndentTextWriter.WriteLineNoTabs method.")
        End If

        ' Outputs a test string with a new-line character at the end.
        indentWriter.WriteLine(("This is a test phrase. Current indentation level: " + level.ToString()))
    End Sub

    Private Sub button1_Click(ByVal sender As Object, ByVal e As System.EventArgs)
        textBox1.Text = CreateMultilevelIndentString()
    End Sub

    Public Sub New()
        Dim button1 As New System.Windows.Forms.Button
        Me.textBox1 = New System.Windows.Forms.TextBox
        Me.SuspendLayout()
        Me.textBox1.Anchor = CType(System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Bottom Or System.Windows.Forms.AnchorStyles.Left Or System.Windows.Forms.AnchorStyles.Right, System.Windows.Forms.AnchorStyles)
        Me.textBox1.Location = New System.Drawing.Point(8, 40)
        Me.textBox1.Multiline = True
        Me.textBox1.Name = "textBox1"
        Me.textBox1.Size = New System.Drawing.Size(391, 242)
        Me.textBox1.TabIndex = 0
        Me.textBox1.Text = ""
        button1.Location = New System.Drawing.Point(11, 8)
        button1.Name = "button1"
        button1.Size = New System.Drawing.Size(229, 23)
        button1.TabIndex = 1
        button1.Text = "Generate string using IndentedTextWriter"
        AddHandler button1.Click, AddressOf Me.button1_Click
        Me.AutoScaleBaseSize = New System.Drawing.Size(5, 13)
        Me.ClientSize = New System.Drawing.Size(407, 287)
        Me.Controls.Add(button1)
        Me.Controls.Add(Me.textBox1)
        Me.Name = "Form1"
        Me.Text = "IndentedTextWriter example"
        Me.ResumeLayout(False)
    End Sub

    <STAThread()> _
    Shared Sub Main()
        Application.Run(New Form1)
    End Sub
End Class

注釈

IndentedTextWriter は、 TextWriter タブ文字列を挿入し、現在のインデント レベルを追跡するメソッドを提供することによって を拡張します。 複数のインデント レベルで書式設定されたテキストは、生成されたコードに役立ちます。そのため、このクラスは CodeDOM コード ジェネレーターの実装で使用されます。

タブ文字列は、各インデントで構成される文字列です。 通常、タブ文字列には空白が含まれます。

注意

このクラスには、リンク確認要求と、すべてのメンバーに適用されるクラス レベルの継承確認要求が含まれています。 直接の呼び出し元か派生クラスのいずれかに完全信頼アクセス許可がない場合、SecurityException がスローされます。 セキュリティ要求の詳細については、「 リンクの要求 と継承の 要求」を参照してください。

コンストラクター

IndentedTextWriter(TextWriter)

指定したテキスト ライターと既定のタブ文字列を使用して、IndentedTextWriter クラスの新しいインスタンスを初期化します。

IndentedTextWriter(TextWriter, String)

テキスト ライターとタブ文字列を指定して、IndentedTextWriter クラスの新しいインスタンスを初期化します。

フィールド

CoreNewLine

この TextWriter で使用する改行文字を格納します。

(継承元 TextWriter)
DefaultTabString

既定のタブ文字列を指定します。 このフィールドは定数です。

プロパティ

Encoding

使用するテキスト ライターのエンコーディングを取得します。

FormatProvider

書式を制御するオブジェクトを取得します。

(継承元 TextWriter)
Indent

インデント幅として適用する空白文字の数を取得または設定します。

InnerWriter

使用する TextWriter を取得します。

NewLine

使用する改行文字を取得または設定します。

メソッド

Close()

書き込まれているドキュメントを閉じます。

CreateObjRef(Type)

リモート オブジェクトとの通信に使用するプロキシの生成に必要な情報をすべて格納しているオブジェクトを作成します。

(継承元 MarshalByRefObject)
Dispose()

この TextWriter オブジェクトによって使用されているすべてのリソースを解放します。

(継承元 TextWriter)
Dispose(Boolean)

TextWriter によって使用されているアンマネージド リソースを解放し、オプションでマネージド リソースも解放します。

(継承元 TextWriter)
DisposeAsync()

アンマネージ リソースの非同期の解放およびリセットに関連付けられているアプリケーション定義のタスクを実行します。

DisposeAsync()

TextWriter オブジェクトによって使用されるすべてのリソースを非同期でリリースします。

(継承元 TextWriter)
Equals(Object)

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

(継承元 Object)
Flush()

ストリームをフラッシュします。

FlushAsync()

この IndentedTextWriter のすべてのバッファーを非同期的にクリアし、バッファー内のデータを基になるデバイスに書き込みます。

FlushAsync()

現在のライターのすべてのバッファーを非同期にクリアし、バッファー内のデータを基になるデバイスに書き込みます。

(継承元 TextWriter)
FlushAsync(CancellationToken)

この IndentedTextWriter のすべてのバッファーを非同期的にクリアし、バッファー内のデータを基になるデバイスに書き込みます。

FlushAsync(CancellationToken)

現在のライターのすべてのバッファーを非同期にクリアし、バッファー内のデータを基になるデバイスに書き込みます。

(継承元 TextWriter)
GetHashCode()

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

(継承元 Object)
GetLifetimeService()
古い.

対象のインスタンスの有効期間ポリシーを制御する、現在の有効期間サービス オブジェクトを取得します。

(継承元 MarshalByRefObject)
GetType()

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

(継承元 Object)
InitializeLifetimeService()
古い.

このインスタンスの有効期間ポリシーを制御する有効期間サービス オブジェクトを取得します。

(継承元 MarshalByRefObject)
MemberwiseClone()

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

(継承元 Object)
MemberwiseClone(Boolean)

現在の MarshalByRefObject オブジェクトの簡易コピーを作成します。

(継承元 MarshalByRefObject)
OutputTabs()

Indent プロパティに従って、各インデント レベルに対してタブ文字列を 1 回出力します。

OutputTabsAsync()

現在Indentの に基づいて、基になる TextWriter にタブを非同期に出力します。

ToString()

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

(継承元 Object)
Write(Boolean)

Boolean 値のテキスト形式をテキスト ストリームに書き込みます。

Write(Char)

文字をテキスト ストリームに書き込みます。

Write(Char[])

文字配列をテキスト ストリームに書き込みます。

Write(Char[], Int32, Int32)

文字の部分配列をテキスト ストリームに書き込みます。

Write(Decimal)

10 進値のテキスト表現をテキスト ストリームに書き込みます。

(継承元 TextWriter)
Write(Double)

Double 値のテキスト形式をテキスト ストリームに書き込みます。

Write(Int32)

整数のテキスト形式をテキスト ストリームに書き込みます。

Write(Int64)

8 バイト整数のテキスト形式をテキスト ストリームに書き込みます。

Write(Object)

オブジェクトのテキスト形式をテキスト ストリームに書き込みます。

Write(ReadOnlySpan<Char>)

文字スパンをテキスト ストリームに書き込みます。

(継承元 TextWriter)
Write(Single)

Single 値のテキスト形式をテキスト ストリームに書き込みます。

Write(String)

指定した文字列をテキスト ストリームに書き込みます。

Write(String, Object)

指定されているセマンティクスを使用して、書式設定された文字列を書き込みます。

Write(String, Object, Object)

指定されているセマンティクスを使用して、書式設定された文字列を書き込みます。

Write(String, Object, Object, Object)

Format(String, Object, Object, Object) メソッドと同じセマンティクスを使用して、書式設定された文字列をテキスト ストリームに書き込みます。

(継承元 TextWriter)
Write(String, Object[])

指定されているセマンティクスを使用して、書式設定された文字列を書き込みます。

Write(StringBuilder)

文字列ビルダーをテキスト ストリームに書き込みます。

(継承元 TextWriter)
Write(UInt32)

4 バイト符号なし整数のテキスト表現をテキスト ストリームに書き込みます。

(継承元 TextWriter)
Write(UInt64)

8 バイト符号なし整数のテキスト表現をテキスト ストリームに書き込みます。

(継承元 TextWriter)
WriteAsync(Char)

指定した Char を基になる TextWriterに非同期的に書き込み、各行の先頭にタブを挿入します。

WriteAsync(Char)

文字をテキスト ストリームに非同期で書き込みます。

(継承元 TextWriter)
WriteAsync(Char[])

文字配列をテキスト ストリームに非同期で書き込みます。

(継承元 TextWriter)
WriteAsync(Char[], Int32, Int32)

指定したバッファーから基になる TextWriterに、指定した数の Chars を非同期に書き込み、指定したインデックスから始まり、すべての新しい行の先頭にタブを出力します。

WriteAsync(Char[], Int32, Int32)

文字の部分配列をテキスト ストリームに非同期で書き込みます。

(継承元 TextWriter)
WriteAsync(ReadOnlyMemory<Char>, CancellationToken)

指定した文字を基になる TextWriterに非同期的に書き込み、各行の先頭にタブを挿入します。

WriteAsync(ReadOnlyMemory<Char>, CancellationToken)

文字メモリ領域をテキスト ストリームに非同期で書き込みます。

(継承元 TextWriter)
WriteAsync(String)

指定した文字列を基になる TextWriterに非同期的に書き込み、各行の先頭にタブを挿入します。

WriteAsync(String)

文字列をテキスト ストリームに非同期で書き込みます。

(継承元 TextWriter)
WriteAsync(StringBuilder, CancellationToken)

指定した StringBuilder の内容を基になる TextWriterに非同期的に書き込み、各行の先頭にタブを挿入します。

WriteAsync(StringBuilder, CancellationToken)

文字列ビルダーをテキスト ストリームに非同期で書き込みます。

(継承元 TextWriter)
WriteLine()

行終端記号を書き込みます。

WriteLine(Boolean)

Boolean 値のテキスト形式をテキスト ストリームに書き込み、続けて行終端記号を書き込みます。

WriteLine(Char)

文字をテキスト ストリームに書き込み、続けて行終端記号を書き込みます。

WriteLine(Char[])

文字配列をテキスト ストリームに書き込み、続けて行終端記号を書き込みます。

WriteLine(Char[], Int32, Int32)

文字の部分配列をテキスト ストリームに書き込み、続けて行終端記号書き込みます。

WriteLine(Decimal)

10 進値のテキスト表現を、続いて行終端記号をテキスト ストリームに書き込みます。

(継承元 TextWriter)
WriteLine(Double)

Double 値のテキスト形式をテキスト ストリームに書き込み、続けて行終端記号を書き込みます。

WriteLine(Int32)

整数のテキスト形式をテキスト ストリームに書き込み、続けて行終端記号を書き込みます。

WriteLine(Int64)

8 バイト整数のテキスト形式をテキスト ストリームに書き込み、続けて行終端記号を書き込みます。

WriteLine(Object)

オブジェクトのテキスト形式をテキスト ストリームに書き込み、続けて行終端記号を書き込みます。

WriteLine(ReadOnlySpan<Char>)

文字スパンのテキスト表現を、続いて行終端記号をテキスト ストリームに書き込みます。

(継承元 TextWriter)
WriteLine(Single)

Single 値のテキスト形式をテキスト ストリームに書き込み、続けて行終端記号を書き込みます。

WriteLine(String)

指定した文字列をテキスト ストリームに書き込み、続けて行終端記号を書き込みます。

WriteLine(String, Object)

指定されているセマンティクスを使用して、書式設定された文字列を書き込み、続けて行終端記号を書き込みます。

WriteLine(String, Object, Object)

指定されているセマンティクスを使用して、書式設定された文字列を書き込み、続けて行終端記号を書き込みます。

WriteLine(String, Object, Object, Object)

Format(String, Object) と同じセマンティクスを使用して、書式設定された文字列と新しい行をテキスト ストリームに書き込みます。

(継承元 TextWriter)
WriteLine(String, Object[])

指定されているセマンティクスを使用して、書式設定された文字列を書き込み、続けて行終端記号を書き込みます。

WriteLine(StringBuilder)

文字列ビルダーのテキスト表現を、続いて行終端記号をテキスト ストリームに書き込みます。

(継承元 TextWriter)
WriteLine(UInt32)

UInt32 のテキスト形式をテキスト ストリームに書き込み、続けて行終端記号を書き込みます。

WriteLine(UInt64)

8 バイト符号なし整数のテキスト表現を、続いて行終端記号をテキスト ストリームに書き込みます。

(継承元 TextWriter)
WriteLineAsync()

行ターミネータを基になる TextWriterに非同期的に書き込みます。

WriteLineAsync()

行終端記号をテキスト ストリームに非同期で書き込みます。

(継承元 TextWriter)
WriteLineAsync(Char)

指定した Char を基になる TextWriter に続けて行ターミネータに非同期的に書き込み、すべての行の先頭にタブを挿入します。

WriteLineAsync(Char)

文字を、続いて行終端記号をテキスト ストリームに非同期で書き込みます。

(継承元 TextWriter)
WriteLineAsync(Char[])

文字配列を、続いて行終端記号をテキスト ストリームに非同期で書き込みます。

(継承元 TextWriter)
WriteLineAsync(Char[], Int32, Int32)

指定したバッファーから行ターミネータが続く指定した文字数を、バッファー内の指定したインデックスから始まり、各行の先頭にタブを挿入して、基になる TextWriterに非同期的に書き込みます。

WriteLineAsync(Char[], Int32, Int32)

文字の部分配列を、続いて行終端記号をテキスト ストリームに非同期で書き込みます。

(継承元 TextWriter)
WriteLineAsync(ReadOnlyMemory<Char>, CancellationToken)

指定した文字の後に行ターミネータを基になる TextWriterに非同期に書き込み、各行の先頭にタブを挿入します。

WriteLineAsync(ReadOnlyMemory<Char>, CancellationToken)

文字メモリ領域のテキスト表現を、続いて行終端記号をテキスト ストリームに非同期で書き込みます。

(継承元 TextWriter)
WriteLineAsync(String)

指定した文字列の後に行ターミネータを基になる TextWriterに非同期に書き込み、各行の先頭にタブを挿入します。

WriteLineAsync(String)

文字列を、続いて行終端記号をテキスト ストリームに非同期で書き込みます。

(継承元 TextWriter)
WriteLineAsync(StringBuilder, CancellationToken)

指定した StringBuilder の内容を非同期に書き込み、その後に行終端記号を基になる TextWriterに書き込み、各行の先頭にタブを挿入します。

WriteLineAsync(StringBuilder, CancellationToken)

文字列ビルダーのテキスト表現を、続いて行終端記号をテキスト ストリームに非同期で書き込みます。

(継承元 TextWriter)
WriteLineNoTabs(String)

タブが適用されていない行に、指定した文字列を書き込みます。

WriteLineNoTabsAsync(String)

タブを挿入せずに、指定した文字列を基になる TextWriter 文字列に非同期的に書き込みます。

明示的なインターフェイスの実装

IDisposable.Dispose()

このメンバーの詳細については、「Dispose()」をご覧ください。

(継承元 TextWriter)

拡張メソッド

ConfigureAwait(IAsyncDisposable, Boolean)

非同期の破棄可能から返されるタスク上での待機がどのように実行されるかを構成します。

適用対象