# CSJ2K.j2k.util.ParameterList.checkList

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="CSJ2K_j2k_util_ParameterList_checkList_" data-uid="CSJ2K.j2k.util.ParameterList.checkList*">checkList Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="CSJ2K_j2k_util_ParameterList_checkList_" data-uid="CSJ2K.j2k.util.ParameterList.checkList*"></a>
<h4 id="CSJ2K_j2k_util_ParameterList_checkList_System_Char_System_String___" data-uid="CSJ2K.j2k.util.ParameterList.checkList(System.Char,System.String[])">checkList(char, string[])</h4>
<div class="markdown level1 summary"><p>Checks if the parameters which name starts with the prefix 'prfx' in
the parameter list are all in the list of valid parameter names
'plist'. If there is a parameter that is not in 'plist' an
IllegalArgumentException is thrown with an explanation message. The
default parameters are also included in the check.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public virtual void checkList(char prfx, string[] plist)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Overridable Sub checkList(prfx As Char, plist As String())</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.char">char</a></td>
      <td><span class="parametername">prfx</span></td>
      <td><p>The prefix of parameters to check.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a>[]</td>
      <td><span class="parametername">plist</span></td>
      <td><p>The list of valid parameter names for the 'prfx'
prefix. If null it is considered that no names are valid.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="CSJ2K_j2k_util_ParameterList_checkList_" data-uid="CSJ2K.j2k.util.ParameterList.checkList*"></a>
<h4 id="CSJ2K_j2k_util_ParameterList_checkList_System_Char___System_String___" data-uid="CSJ2K.j2k.util.ParameterList.checkList(System.Char[],System.String[])">checkList(char[], string[])</h4>
<div class="markdown level1 summary"><p>Checks if the parameters which names do not start with any of the
prefixes in 'prfxs' in this ParameterList are all in the list of valid
parameter names 'plist'. If there is a parameter that is not in 'plist'
an IllegalArgumentException is thrown with an explanation message. The
default parameters are also included in the check.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public virtual void checkList(char[] prfxs, string[] plist)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Overridable Sub checkList(prfxs As Char(), plist As String())</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.char">char</a>[]</td>
      <td><span class="parametername">prfxs</span></td>
      <td><p>The prefixes of parameters to ignore.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a>[]</td>
      <td><span class="parametername">plist</span></td>
      <td><p>The list of valid parameter names. If null it is
considered that no names are valid.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
