# C1.Util.DX.Direct2D.CommandList

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_Util_DX_Direct2D_CommandList" data-uid="C1.Util.DX.Direct2D.CommandList" class="text-break">CommandList Class
</h1>
  <div class="markdown level0 summary"><p>ID2D1CommandList</p>
</div>
  <div class="markdown level0 conceptual"></div>
  <div class="inheritance">
    <h5>Inheritance</h5>
    <div class="level0"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a></div>
    <div class="level1"><a class="xref" href="C1.Util.DX.DisposeBase.html">DisposeBase</a></div>
    <div class="level2"><a class="xref" href="C1.Util.DX.CppObject.html">CppObject</a></div>
    <div class="level3"><a class="xref" href="C1.Util.DX.ComObject.html">ComObject</a></div>
    <div class="level4"><a class="xref" href="C1.Util.DX.Direct2D.Resource.html">Resource</a></div>
    <div class="level5"><a class="xref" href="C1.Util.DX.Direct2D.Image.html">Image</a></div>
    <div class="level6"><span class="xref">CommandList</span></div>
  </div>
  <div class="implements">
    <h5>Implements</h5>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.idisposable">IDisposable</a></div>
    <div><a class="xref" href="C1.Util.DX.IUnknown.html">IUnknown</a></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="C1.Util.DX.Direct2D.html">C1.Util.DX.Direct2D</a></h6>
  <h6><strong>Assembly</strong>: C1.Win.DX.10.dll</h6>
  <h5 id="C1_Util_DX_Direct2D_CommandList_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">[Guid(&quot;b4f34a19-2383-4d76-94f6-ec343657c3dc&quot;)]
public class CommandList : Image, IDisposable, IUnknown</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">&lt;Guid(&quot;b4f34a19-2383-4d76-94f6-ec343657c3dc&quot;)&gt;
Public Class CommandList
    Inherits Image
    Implements IDisposable, IUnknown</code></pre>
  </div>
  <h3 id="constructors">Constructors
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_Util_DX_Direct2D_CommandList__ctor_System_IntPtr_" data-uid="C1.Util.DX.Direct2D.CommandList.#ctor(System.IntPtr)">
          <a class="xref" href="C1.Util.DX.Direct2D.CommandList.-ctor.html#C1_Util_DX_Direct2D_CommandList__ctor_System_IntPtr_">CommandList(nint)</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.Util.DX.Direct2D.CommandList.html">CommandList</a> class.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="methods">Methods
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_Util_DX_Direct2D_CommandList_Close" data-uid="C1.Util.DX.Direct2D.CommandList.Close">
          <a class="xref" href="C1.Util.DX.Direct2D.CommandList.Close.html#C1_Util_DX_Direct2D_CommandList_Close">Close()</a>
        </td>
        <td class="markdown level1 summary"><p>HRESULT ID2D1CommandList::Close()</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_DX_Direct2D_CommandList_Create_C1_Util_DX_Direct2D_DeviceContext_" data-uid="C1.Util.DX.Direct2D.CommandList.Create(C1.Util.DX.Direct2D.DeviceContext)">
          <a class="xref" href="C1.Util.DX.Direct2D.CommandList.Create.html#C1_Util_DX_Direct2D_CommandList_Create_C1_Util_DX_Direct2D_DeviceContext_">Create(DeviceContext)</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.Util.DX.Direct2D.CommandList.html">CommandList</a> class.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_DX_Direct2D_CommandList_Stream_C1_Util_DX_Direct2D_CommandSink_" data-uid="C1.Util.DX.Direct2D.CommandList.Stream(C1.Util.DX.Direct2D.CommandSink)">
          <a class="xref" href="C1.Util.DX.Direct2D.CommandList.Stream.html#C1_Util_DX_Direct2D_CommandList_Stream_C1_Util_DX_Direct2D_CommandSink_">Stream(CommandSink)</a>
        </td>
        <td class="markdown level1 summary"><p>Streams the contents of the command list to the specified command sink.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Util_DX_Direct2D_CommandList_Stream_C1_Util_DX_Direct2D_CommandSink1_" data-uid="C1.Util.DX.Direct2D.CommandList.Stream(C1.Util.DX.Direct2D.CommandSink1)">
          <a class="xref" href="C1.Util.DX.Direct2D.CommandList.Stream.html#C1_Util_DX_Direct2D_CommandList_Stream_C1_Util_DX_Direct2D_CommandSink1_">Stream(CommandSink1)</a>
        </td>
        <td class="markdown level1 summary"><p>Streams the contents of the command list to the specified command sink.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="operators">Operators
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_Util_DX_Direct2D_CommandList_op_Explicit_System_IntPtr__C1_Util_DX_Direct2D_CommandList" data-uid="C1.Util.DX.Direct2D.CommandList.op_Explicit(System.IntPtr)~C1.Util.DX.Direct2D.CommandList">
          <a class="xref" href="C1.Util.DX.Direct2D.CommandList.op_Explicit.html#C1_Util_DX_Direct2D_CommandList_op_Explicit_System_IntPtr__C1_Util_DX_Direct2D_CommandList">explicit operator CommandList(nint)</a>
        </td>
        <td class="markdown level1 summary"><p>Performs an explicit conversion from <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.intptr">nint</a> to <a class="xref" href="C1.Util.DX.Direct2D.CommandList.html">CommandList</a>.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
