public AddVelocimacro ( String name, String macro, String argArray, String sourceTemplate ) : bool | ||
name | String | Name of velocimacro |
macro | String | String form of macro body |
argArray | String | Array of strings, containing the #macro() arguments. the 0th is the name. |
sourceTemplate | String | Name of template |
Résultat | bool |
/// <summary> /// Adds a new Velocimacro. Usually called by Macro only while parsing. /// </summary> /// <param name="name">Name of velocimacro</param> /// <param name="macro">String form of macro body</param> /// <param name="argArray">Array of strings, containing the /// <code>#macro()</code> arguments. The 0th is the name. /// </param> /// <param name="sourceTemplate">Source template</param> /// <returns>True if added, false if rejected for some /// reason (either parameters or permission settings) /// </returns> public static bool AddVelocimacro(String name, String macro, String[] argArray, String sourceTemplate) { return(ri.AddVelocimacro(name, macro, argArray, sourceTemplate)); }