Unregister: Difference between revisions
(Created page with "Unregisters an injected command at runtime. ==Syntax== <syntaxhighlight lang="C#" >bool NAPI.Command.Unregister(string commandName);</syntaxhighlight> '''NOTE:''' This funct...") |
|||
| (2 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
Unregisters an injected command at runtime. | Unregisters an injected command at runtime. | ||
{{CSharpContainer| | |||
==Syntax== | ==Syntax== | ||
<syntaxhighlight lang="C#" >bool NAPI.Command.Unregister(string commandName);</syntaxhighlight> | <syntaxhighlight lang="C#" >bool NAPI.Command.Unregister(string commandName);</syntaxhighlight> | ||
'''NOTE:''' This function returns a bool, true if successful and false if failed. | '''NOTE:''' This function returns a bool, true if successful and false if failed. | ||
}} | |||
{{CSharpContainer| | |||
==Usage example(s)== | ==Usage example(s)== | ||
<syntaxhighlight lang="C#" > | <syntaxhighlight lang="C#" > | ||
| Line 15: | Line 18: | ||
[[Category:Serverside API]] | [[Category:Serverside API]] | ||
}} | |||
Latest revision as of 19:35, 14 September 2021
Unregisters an injected command at runtime.
C# Syntax
Syntax
bool NAPI.Command.Unregister(string commandName);
NOTE: This function returns a bool, true if successful and false if failed.
C# Syntax
Usage example(s)
public void InvokedFromSomewhere()
{
NAPI.Command.Unregister("testcmd");
}