# C1.Win.LongOperationEventArgs

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_Win_LongOperationEventArgs" data-uid="C1.Win.LongOperationEventArgs" class="text-break">LongOperationEventArgs Class
</h1>
  <div class="markdown level0 summary"><p>Describes arguments for the event fired periodically by a potentially
long operation. Allows to provide feedback to the user and may also
allow to cancel the operation.</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="https://learn.microsoft.com/dotnet/api/system.eventargs">EventArgs</a></div>
    <div class="level2"><span class="xref">LongOperationEventArgs</span></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="C1.Win.html">C1.Win</a></h6>
  <h6><strong>Assembly</strong>: C1.Win.10.dll</h6>
  <h5 id="C1_Win_LongOperationEventArgs_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class LongOperationEventArgs : EventArgs</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class LongOperationEventArgs
    Inherits EventArgs</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_Win_LongOperationEventArgs__ctor" data-uid="C1.Win.LongOperationEventArgs.#ctor">
          <a class="xref" href="C1.Win.LongOperationEventArgs.-ctor.html#C1_Win_LongOperationEventArgs__ctor">LongOperationEventArgs()</a>
        </td>
        <td class="markdown level1 summary"><p>Creates a new instance of LongOperationEventArgs with default
properties (Complete=0, CanCancel=false).</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_LongOperationEventArgs__ctor_System_Boolean_" data-uid="C1.Win.LongOperationEventArgs.#ctor(System.Boolean)">
          <a class="xref" href="C1.Win.LongOperationEventArgs.-ctor.html#C1_Win_LongOperationEventArgs__ctor_System_Boolean_">LongOperationEventArgs(bool)</a>
        </td>
        <td class="markdown level1 summary"><p>Creates a new instance of LongOperationEventArgs with the
specified CanCancel value and Complete=0.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_LongOperationEventArgs__ctor_System_Double_" data-uid="C1.Win.LongOperationEventArgs.#ctor(System.Double)">
          <a class="xref" href="C1.Win.LongOperationEventArgs.-ctor.html#C1_Win_LongOperationEventArgs__ctor_System_Double_">LongOperationEventArgs(double)</a>
        </td>
        <td class="markdown level1 summary"><p>Creates a new instance of LongOperationEventArgs with the
specified complete value and CanCancel=false.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_LongOperationEventArgs__ctor_System_Double_System_Boolean_" data-uid="C1.Win.LongOperationEventArgs.#ctor(System.Double,System.Boolean)">
          <a class="xref" href="C1.Win.LongOperationEventArgs.-ctor.html#C1_Win_LongOperationEventArgs__ctor_System_Double_System_Boolean_">LongOperationEventArgs(double, bool)</a>
        </td>
        <td class="markdown level1 summary"><p>Creates a new instance of LongOperationEventArgs with the
specified complete and CanCancel values.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="properties">Properties
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_Win_LongOperationEventArgs_CanCancel" data-uid="C1.Win.LongOperationEventArgs.CanCancel">
          <a class="xref" href="C1.Win.LongOperationEventArgs.CanCancel.html#C1_Win_LongOperationEventArgs_CanCancel">CanCancel</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the value indicating whether the event handler can cancel the current long operation
by setting the <a class="xref" href="C1.Win.LongOperationEventArgs.Cancel.html#C1_Win_LongOperationEventArgs_Cancel">Cancel</a> property to <b>true</b>.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_LongOperationEventArgs_Cancel" data-uid="C1.Win.LongOperationEventArgs.Cancel">
          <a class="xref" href="C1.Win.LongOperationEventArgs.Cancel.html#C1_Win_LongOperationEventArgs_Cancel">Cancel</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a value indicating whether the current long operation
should be cancelled. (This property is ignored if <a class="xref" href="C1.Win.LongOperationEventArgs.CanCancel.html#C1_Win_LongOperationEventArgs_CanCancel">CanCancel</a> is <b>false</b>.)</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_LongOperationEventArgs_Complete" data-uid="C1.Win.LongOperationEventArgs.Complete">
          <a class="xref" href="C1.Win.LongOperationEventArgs.Complete.html#C1_Win_LongOperationEventArgs_Complete">Complete</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the approximate completed ratio, from 0 (0% complete) to 1 (100% complete).</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
