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

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

Converts the given group name to the SID corresponding to that name.
If the groupName cannot be converted to a SID, groupName will be the return value.
public static GroupNameToSID ( string groupName ) : string
groupName string The group name for which to look up the SID.
Результат string
        public static string GroupNameToSID(string groupName)
        {
            if (Common.IsPosixEnvironment)
                return UnixUserInfo.GroupNameToSID(groupName);

            return WindowsUserInfo.AccountNameToSID(groupName);
        }