Exemple #1
0
        public bool GetGroups(out string[] groupNames)
        {
            groupNames = null;
            OPCGroups myGroups = myServer.OPCGroups;

            if (myGroups == null)
            {
                return(false);
            }

            groupNames = new string[myGroups.Count];
            for (int i = 0; i < groupNames.Count(); i++)
            {
                groupNames[i] = myGroups.Item(i + 1).Name;
            }

            return(true);
        }