Opc.Ua.Com.Server.ComDaGroupManager.GetGroupByName C# (CSharp) Method

GetGroupByName() public method

Gets the group with the specified name.
public GetGroupByName ( string groupName ) : ComDaGroup
groupName string Name of the group.
return ComDaGroup
        public ComDaGroup GetGroupByName(string groupName)
        {
            TraceState("GetGroupByName", groupName);

            lock (m_lock)
            {
                for (int ii = 0; ii < m_groups.Count; ii++)
                {
                    ComDaGroup group = m_groups[ii];

                    if (group.Name == groupName)
                    {
                        return group;
                    }
                }

                return null;
            }
        }