Exemple #1
0
        /// <summary>
        /// Removes specified parameter from the collection.
        /// </summary>
        /// <param name="name">Parameter name.</param>
        public void Remove(string name)
        {
            SIP_Parameter parameter = this[name];

            if (parameter != null)
            {
                m_pCollection.Remove(parameter);
            }
        }
Exemple #2
0
        /// <summary>
        /// Checks if the collection contains parameter with the specified name.
        /// </summary>
        /// <param name="name">Parameter name.</param>
        /// <returns>Returns true if collection contains specified parameter.</returns>
        public bool Contains(string name)
        {
            SIP_Parameter parameter = this[name];

            if (parameter != null)
            {
                return(true);
            }
            else
            {
                return(false);
            }
        }