# C1.Web.Mvc.MenuCommand

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_Web_Mvc_MenuCommand" data-uid="C1.Web.Mvc.MenuCommand" class="text-break">MenuCommand Class
</h1>
  <div class="markdown level0 summary"><p>Represents the action for the MenuItem to execute.</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"><span class="xref">MenuCommand</span></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="C1.Web.Mvc.html">C1.Web.Mvc</a></h6>
  <h6><strong>Assembly</strong>: C1.AspNetCore.Mvc.dll</h6>
  <h5 id="C1_Web_Mvc_MenuCommand_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class MenuCommand</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class MenuCommand</code></pre>
  </div>
  <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_Web_Mvc_MenuCommand_CanExecuteCommand" data-uid="C1.Web.Mvc.MenuCommand.CanExecuteCommand">
          <a class="xref" href="C1.Web.Mvc.MenuCommand.CanExecuteCommand.html#C1_Web_Mvc_MenuCommand_CanExecuteCommand">CanExecuteCommand</a>
        </td>
        <td class="markdown level1 summary"><p>This method returns a Boolean value that determines whether the controller can execute the command.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Web_Mvc_MenuCommand_ExecuteCommand" data-uid="C1.Web.Mvc.MenuCommand.ExecuteCommand">
          <a class="xref" href="C1.Web.Mvc.MenuCommand.ExecuteCommand.html#C1_Web_Mvc_MenuCommand_ExecuteCommand">ExecuteCommand</a>
        </td>
        <td class="markdown level1 summary"><p>This method executes the command.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
