# C1.Document.C1DocumentSource.SecurityError

## Content

<div class="doc-site-dotnet-api-container">




<h1 id="C1_Document_C1DocumentSource_SecurityError" data-uid="C1.Document.C1DocumentSource.SecurityError" class="text-break">SecurityError Event
</h1>
<div class="markdown level0 summary"><p>Occurs when a securiy exception occurs during a document source operation.
This event allows to correct security-related properties like <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.net.networkcredential">NetworkCredential</a>
and retry a failed operation with new credentials.</p>
</div>
<div class="markdown level0 conceptual"></div>
<h6><strong>Namespace</strong>: <a class="xref" href="C1.Document.html">C1.Document</a></h6>
<h6><strong>Assembly</strong>: C1.Document.dll</h6>
<h5 id="C1_Document_C1DocumentSource_SecurityError_syntax">Syntax</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">[C1Description(&quot;C1DocumentSource.SecurityError&quot;, &quot;Occurs when a securiy exception occurs during a document source operation.&quot;)]
public event SecurityErrorEventHandler SecurityError</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">&lt;C1Description(&quot;C1DocumentSource.SecurityError&quot;, &quot;Occurs when a securiy exception occurs during a document source operation.&quot;)&gt;
Public Event SecurityError As SecurityErrorEventHandler</code></pre>
</div>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="C1.Document.SecurityErrorEventHandler.html">SecurityErrorEventHandler</a></td>
      <td>Occurs when a securiy exception occurs during a document source operation. This event allows to correct security-related properties like  and retry a failed operation with new credentials.</td>
    </tr>
  </tbody>
</table>
</div>
