Ejemplo n.º 1
0
        /// <summary>
        /// Inserts an parameter at a specified index.
        /// </summary>
        /// <param name="index">An integer index of the paramater.</param>
        /// <param name="name">The name of the parameter.</param>
        /// <param name="value">The value of the parameter.</param>
        /// <returns>The XMLMC parameter object.</returns>
        public XmlmcParam InsertAt(int index, string name, DateTime value)
        {
            XmlmcParam param = new XmlmcParam(name, value);

            Children.Insert(index, param);
            return(param);
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Add parameters to the XMLMC method call.
        /// </summary>
        /// <param name="name">The name of the parameter.</param>
        /// <param name="value">The value of the parameter.</param>
        /// <returns>The XMLMC parameter object.</returns>
        public XmlmcParam Add(string name, int value)
        {
            XmlmcParam param = new XmlmcParam(name, value);

            Children.Add(param);
            return(param);
        }
Ejemplo n.º 3
0
 /// <summary>
 /// Creates a new XmlmcParam.
 /// </summary>
 /// <param name="name">The name of the parameter.</param>
 /// <param name="inParam">The value of the parameter.</param>
 public XmlmcParam(string name, XmlmcParam inParam)
 {
     validateParamName(name);
     if (inParam == null)
     {
         initParams(name, string.Empty);
     }
     else
     {
         this._name  = name;
         this._value = string.Empty;
         this.Children.Add(inParam);
     }
 }