<html><head><metahttp-equiv="X-UA-Compatible"content="IE=edge"/><linkrel="shortcut icon"href="../icons/favicon.ico"/><linkrel="stylesheet"type="text/css"href="../styles/branding.css"/><linkrel="stylesheet"type="text/css"href="../styles/branding-en-US.css"/><scripttype="text/javascript"src="../scripts/branding.js"></script><metahttp-equiv="Content-Type"content="text/html; charset=UTF-8"/><title>UpdateConfigAction Class</title><metaname="Language"content="en-us"/><metaname="System.Keywords"content="UpdateConfigAction class"/><metaname="System.Keywords"content="AsterNET.Manager.Action.UpdateConfigAction class"/><metaname="System.Keywords"content="UpdateConfigAction class, about UpdateConfigAction class"/><metaname="Microsoft.Help.F1"content="AsterNET.Manager.Action.UpdateConfigAction"/><metaname="Microsoft.Help.Id"content="T:AsterNET.Manager.Action.UpdateConfigAction"/><metaname="Description"content="The UpdateConfigAction sends an UpdateConfig command to the asterisk server. Please take note that unlike the manager documentation, this command does not dump back the config file upon success -- it only tells you it succeeded."/><metaname="Microsoft.Help.ContentType"content="Reference"/><metaname="BrandingAware"content="true"/><metaname="container"content="AsterNET.Manager.Action"/><metaname="file"content="T_AsterNET_Manager_Action_UpdateConfigAction"/><metaname="guid"content="T_AsterNET_Manager_Action_UpdateConfigAction"/><linkrel="stylesheet"type="text/css"href="../styles/branding-Website.css"/><scripttype="text/javascript"src="../scripts/jquery-1.11.0.min.js"></script><scripttype="text/javascript"src="../scripts/branding-Website.js"></script></head><bodyonload="OnLoad('cs')"><inputtype="hidden"id="userDataCache"class="userDataStyle"/><divclass="pageHeader"id="PageHeader">AsterNet Class Library (Sandcastle documentation)<formid="SearchForm"method="get"action="#"onsubmit="javascript:TransferToSearchPage(); return false;"><inputid="SearchTextBox"type="text"maxlength="200"/><buttonid="SearchButton"type="submit"></button></form></div><divclass="pageBody"><divclass="leftNav"id="leftNav"><divid="tocNav"><divclass="toclevel0"data-toclevel="0"><aclass="tocCollapsed"onclick="javascript: Toggle(this);"href="#!"></a><adata-tochassubtree="true"href="79b6241e-05a3-441c-b6a1-51f2b5b7f265.htm"title="AsterNet Class Library (Sandcastle documentation)"tocid="roottoc">AsterNet Class Library (Sandcastle documentation)</a></div><divclass="toclevel0"data-toclevel="0"><aclass="tocCollapsed"onclick="javascript: Toggle(this);"href="#!"></a><adata-tochassubtree="true"href="N_AsterNET_Manager_Action.htm"title="AsterNET.Manager.Action"tocid="N_AsterNET_Manager_Action">AsterNET.Manager.Action</a></div><divclass="toclevel1 current"data-toclevel="1"data-childrenloaded="true"><aclass="tocExpanded"onclick="javascript: Toggle(this);"href="#!"></a><adata-tochassubtree="true"href="T_AsterNET_Manager_Action_UpdateConfigAction.htm"title="UpdateConfigAction Class"tocid="T_AsterNET_Manager_Action_UpdateConfigAction">UpdateConfigAction Class</a></div><divclass="toclevel2"data-toclevel="2"><aclass="tocCollapsed"onclick="javascript: Toggle(this);"href="#!"></a><adata-tochassubtree="true"href="Overload_AsterNET_Manager_Action_UpdateConfigAction__ctor.htm"title="UpdateConfigAction Constructor "tocid="Overload_AsterNET_Manager_Action_UpdateConfigAction__ctor">UpdateConfigAction Constructor </a></div><divclass="toclevel2"data-toclevel="2"><aclass="tocCollapsed"onclick="javascript: Toggle(this);"href="#!"></a><adata-tochassubtree="true"href="Fields_T_AsterNET_Manager_Action_UpdateConfigAction.htm"title="UpdateConfigAction Fields"tocid="Fields_T_AsterNET_Manager_Action_UpdateConfigAction">UpdateConfigAction Fields</a></div><divclass="toclevel2"data-toclevel="2"><aclass="tocCollapsed"onclick="javascript: Toggle(this);"href="#!"></a><adata-tochassubtree="true"href="Methods_T_AsterNET_Manager_Action_UpdateConfigAction.htm"title="Updat
The UpdateConfigAction sends an UpdateConfig command to the asterisk server.
Please take note that unlike the manager documentation, this command does not
dump back the config file upon success -- it only tells you it succeeded. You
should use the handy addCommand method this class provides for specifying
what actions you would like to take on the configuration file. It will
generate appropriate sequence numbers for the command. You may use the static
ACTION_* fields provided by this action to specify what action you would like
to take, while avoiding handling the strings required. Plain fields:<br/>
SrcFilename: Configuration filename to read(e.g. foo.conf)<br/>
DstFilename: Configuration filename to write(e.g. foo.conf)<br/>
Reload: Whether or not a reload should take place (or name of specific module)<br/>
Repeatable fields:<br/>
Action-XXXXXX: Action to Take (NewCat,RenameCat,DelCat,Update,Delete,Append)<br/>
<spanclass="keyword">end</span></pre></div></div></div><scripttype="text/javascript">AddLanguageTabSet("ID1EDCA");</script></div><p>The <spanclass="selflink">UpdateConfigAction</span> type exposes the following members.</p><divclass="collapsibleAreaRegion"><spanclass="collapsibleRegionTitle"onclick="SectionExpandCollapse('ID3RB')"onkeypress="SectionExpandCollapse_CheckKey('ID3RB', event)"tabindex="0"><imgid="ID3RBToggle"class="collapseToggle"src="../icons/SectionExpanded.png"/>Constructors</span></div><divid="ID3RBSection"class="collapsibleSection"><tableid="memberList"class="members"><tr><thclass="iconColumn">
Adds a command to update a config file while sparing you the details of
the Manager's required syntax. If you want to omit one of the command's
sections, provide a null value to this method. The command index will be
incremented even if you supply a null for all parameters, though the action
will be unaffected.
</div></td></tr><trdata="public;inherited;notNetfw;"><td><imgsrc="../icons/pubmethod.gif"alt="Public method"title="Public method"/></td><td><ahref="http://msdn2.microsoft.com/en-us/library/bsc2ak47"target="_blank">Equals</a></td><td><divclass="summary">Determines whether the specified <ahref="http://msdn2.microsoft.com/en-us/library/e5kfa45b"target="_blank">Object</a> is equal to the current <ahref="http://msdn2.microsoft.com/en-us/library/e5kfa45b"target="_blank">Object</a>.</div> (Inherited from <ahref="http://msdn2.microsoft.com/en-us/library/e5kfa45b"target="_blank">Object</a>.)</td></tr><trdata="protected;inherited;notNetfw;"><td><imgsrc="../icons/protmethod.gif"alt="Protected method"title="Protected method"/></td><td><ahref="http://msdn2.microsoft.com/en-us/library/4k87zsw7"target="_blank">Finalize</a></td><td><divclass="summary">Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.</div> (Inherited from <ahref="http://msdn2.microsoft.com/en-us/library/e5kfa45b"target="_blank">Object</a>.)</td></tr><trdata="public;inherited;notNetfw;"><td><imgsrc="../icons/pubmethod.gif"alt="Public method"title="Public method"/></td><td><ahref="http://msdn2.microsoft.com/en-us/library/zdee4b3y"target="_blank">GetHashCode</a></td><td><divclass="summary">Serves as a hash function for a particular type. </div> (Inherited from <ahref="http://msdn2.microsoft.com/en-us/library/e5kfa45b"target="_blank">Object</a>.)</td></tr><trdata="public;inherited;notNetfw;"><td><imgsrc="../icons/pubmethod.gif"alt="Public method"title="Public method"/></td><td><ahref="http://msdn2.microsoft.com/en-us/library/dfwy45w9"target="_blank">GetType</a></td><td><divclass="summary">Gets the <ahref="http://msdn2.microsoft.com/en-us/library/42892f65"target="_blank">Type</a> of the current instance.</div> (Inherited from <ahref="http://msdn2.microsoft.com/en-us/library/e5kfa45b"target="_blank">Object</a>.)</td></tr><trdata="protected;inherited;notNetfw;"><td><imgsrc="../icons/protmethod.gif"alt="Protected method"title="Protected method"/></td><td><ahref="http://msdn2.microsoft.com/en-us/library/57ctke0a"target="_blank">MemberwiseClone</a></td><td><divclass="summary">Creates a shallow copy of the current <ahref="http://msdn2.microsoft.com/en-us/library/e5kfa45b"target="_blank">Object</a>.</div> (Inherited from <ahref="http://msdn2.microsoft.com/en-us/library/e5kfa45b"target="_blank">Object</a>.)</td></tr><trdata="public;inherited;notNetfw;"><td><imgsrc="../icons/pubmethod.gif"alt="Public method"title="Public method"/></td><td><ahref="M_AsterNET_Manager_Action_ManagerAction_ToString.htm">ToString</a></td><td> (Inherited from <ahref="T_AsterNET_Manager_Action_ManagerAction.htm">ManagerAction</a>.)</td></tr></table><ahref="#PageHeader">Top</a></div><divclass="collapsibleAreaRegion"><spanclass="collapsibleRegionTitle"onclick="SectionExpandCollapse('ID5RB')"onkeypress="SectionExpandCollapse_CheckKey('ID5RB', event)"tabindex="0"><imgid="ID5RBToggle"class="collapseToggle"src="../icons/SectionExpanded.png"/>Fields</span></div><divid="ID5RBSection"class="collapsibleSection"><tableid="memberList"class="members"><tr><thclass="iconColumn">