# C1.Win.LongOperationEventArgs.-ctor

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Win_LongOperationEventArgs__ctor_" data-uid="C1.Win.LongOperationEventArgs.#ctor*">LongOperationEventArgs Constructor
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Win_LongOperationEventArgs__ctor_" data-uid="C1.Win.LongOperationEventArgs.#ctor*"></a>
<h4 id="C1_Win_LongOperationEventArgs__ctor" data-uid="C1.Win.LongOperationEventArgs.#ctor">LongOperationEventArgs()</h4>
<div class="markdown level1 summary"><p>Creates a new instance of LongOperationEventArgs with default
properties (Complete=0, CanCancel=false).</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public LongOperationEventArgs()</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New()</code></pre>
</div>


<a id="C1_Win_LongOperationEventArgs__ctor_" data-uid="C1.Win.LongOperationEventArgs.#ctor*"></a>
<h4 id="C1_Win_LongOperationEventArgs__ctor_System_Double_" data-uid="C1.Win.LongOperationEventArgs.#ctor(System.Double)">LongOperationEventArgs(double)</h4>
<div class="markdown level1 summary"><p>Creates a new instance of LongOperationEventArgs with the
specified complete value and CanCancel=false.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public LongOperationEventArgs(double complete)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(complete As Double)</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="https://learn.microsoft.com/dotnet/api/system.double">double</a></td>
      <td><span class="parametername">complete</span></td>
      <td><p>How much is complete (from 0 to 1).</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_Win_LongOperationEventArgs__ctor_" data-uid="C1.Win.LongOperationEventArgs.#ctor*"></a>
<h4 id="C1_Win_LongOperationEventArgs__ctor_System_Double_System_Boolean_" data-uid="C1.Win.LongOperationEventArgs.#ctor(System.Double,System.Boolean)">LongOperationEventArgs(double, bool)</h4>
<div class="markdown level1 summary"><p>Creates a new instance of LongOperationEventArgs with the
specified complete and CanCancel values.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public LongOperationEventArgs(double complete, bool canCancel)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(complete As Double, canCancel As Boolean)</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="https://learn.microsoft.com/dotnet/api/system.double">double</a></td>
      <td><span class="parametername">complete</span></td>
      <td><p>How much is complete (from 0 to 1).</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">canCancel</span></td>
      <td><p>Whether the operation can be cancelled.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_Win_LongOperationEventArgs__ctor_" data-uid="C1.Win.LongOperationEventArgs.#ctor*"></a>
<h4 id="C1_Win_LongOperationEventArgs__ctor_System_Boolean_" data-uid="C1.Win.LongOperationEventArgs.#ctor(System.Boolean)">LongOperationEventArgs(bool)</h4>
<div class="markdown level1 summary"><p>Creates a new instance of LongOperationEventArgs with the
specified CanCancel value and Complete=0.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public LongOperationEventArgs(bool canCancel)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(canCancel As Boolean)</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="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">canCancel</span></td>
      <td><p>Whether the operation can be cancelled.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
