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

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

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

            return WindowsUserInfo.SIDToAccountName(sid);
        }