# C1.Util.DX.Storage.ComStreamProxy.Commit

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Util_DX_Storage_ComStreamProxy_Commit_" data-uid="C1.Util.DX.Storage.ComStreamProxy.Commit*">Commit Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Util_DX_Storage_ComStreamProxy_Commit_" data-uid="C1.Util.DX.Storage.ComStreamProxy.Commit*"></a>
<h4 id="C1_Util_DX_Storage_ComStreamProxy_Commit_C1_Util_DX_Storage_CommitFlags_" data-uid="C1.Util.DX.Storage.ComStreamProxy.Commit(C1.Util.DX.Storage.CommitFlags)">Commit(CommitFlags)</h4>
<div class="markdown level1 summary"><p>Commit method ensures that any changes made to a stream object open in transacted mode are reflected in the parent storage. If the stream object is open in direct mode, Commit has no effect other than flushing all memory buffers to the next-level storage object. The COM compound file implementation of streams does not support opening streams in transacted mode.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void Commit(CommitFlags commitFlags)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub Commit(commitFlags As CommitFlags)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="C1.Util.DX.Storage.CommitFlags.html">CommitFlags</a></td>
      <td><span class="parametername">commitFlags</span></td>
      <td></td>
    </tr>
  </tbody>
</table>
<h5 class="implements">Implements</h5>
    <div><a class="xref" href="C1.Util.DX.Storage.IStream.Commit.html#C1_Util_DX_Storage_IStream_Commit_C1_Util_DX_Storage_CommitFlags_">IStream.Commit(CommitFlags)</a></div>
</div>
