GSF.Identity.UserInfo.GetLocalGroupUserList C# (CSharp) Метод

GetLocalGroupUserList() публичный статический Метод

Gets a list of users that exist in the specified local groupName.
was null. No was specified. Could not get members for local group.
public static GetLocalGroupUserList ( string groupName ) : string[]
groupName string Group name to remove local user from.
Результат string[]
        public static string[] GetLocalGroupUserList(string groupName)
        {
            if ((object)groupName == null)
                throw new ArgumentNullException(nameof(groupName));

            // Remove any irrelevant white space
            groupName = groupName.Trim();

            if (groupName.Length == 0)
                throw new ArgumentException("Cannot get members for local group: no group name was specified.", nameof(groupName));

            groupName = ValidateGroupName(groupName);

            if (Common.IsPosixEnvironment)
                return UnixUserInfo.GetLocalGroupUserList(groupName);

            return WindowsUserInfo.GetLocalGroupUserList(groupName);
        }