# C1.Document.Utils.GetInterface

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Document_Utils_GetInterface_" data-uid="C1.Document.Utils.GetInterface*">GetInterface Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Document_Utils_GetInterface_" data-uid="C1.Document.Utils.GetInterface*"></a>
<h4 id="C1_Document_Utils_GetInterface_System_Type_System_String_System_Boolean_" data-uid="C1.Document.Utils.GetInterface(System.Type,System.String,System.Boolean)">GetInterface(Type, string, bool)</h4>
<div class="markdown level1 summary"><p>Searches for the specified interface, specifying whether to do a case-insensitive search for the interface name.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public static Type GetInterface(Type type, string interfaceName, bool ignoreCase)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Shared Function GetInterface(type As Type, interfaceName As String, ignoreCase As Boolean) As Type</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.type">Type</a></td>
      <td><span class="parametername">type</span></td>
      <td><p>Represents type declarations: class types, interface types, array types, value
types, enumeration types, type parameters, generic type definitions, and open or closed constructed generic types.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">interfaceName</span></td>
      <td><p>The string containing the name of the interface to get. For generic interfaces,
this is the mangled name.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">ignoreCase</span></td>
      <td><p>true to ignore the case of that part of name that specifies the simple interface name
(the part that specifies the namespace must be correctly cased). -or- false
to perform a case-sensitive search for all parts of name.</p>
</td>
    </tr>
  </tbody>
</table>
<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="https://learn.microsoft.com/dotnet/api/system.type">Type</a></td>
      <td><p>An object representing the interface with the specified name, implemented or
inherited by the current System.Type, if found; otherwise, null.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
