Пример #1
0
        /// <summary>
        /// The SASL mechanisms valid for this stream.
        /// </summary>
        /// <returns></returns>
        public Mechanism[] GetMechanisms()
        {
            XmlNodeList nl = GetElementsByTagName("mechanism", URI.SASL);

            Mechanism[] items = new Mechanism[nl.Count];
            int         i     = 0;

            foreach (XmlNode n in nl)
            {
                items[i] = (Mechanism)n;
                i++;
            }
            return(items);
        }
Пример #2
0
 /// <summary>
 /// The SASL mechanisms valid for this stream.
 /// </summary>
 /// <returns></returns>
 public Mechanism[] GetMechanisms()
 {
     XmlNodeList nl = GetElementsByTagName("mechanism", URI.SASL);
     Mechanism[] items = new Mechanism[nl.Count];
     int i=0;
     foreach (XmlNode n in nl)
     {
         items[i] = (Mechanism) n;
         i++;
     }
     return items;
 }