GSF.Identity.UserInfo.UserNameToSID C# (CSharp) Méthode

UserNameToSID() public static méthode

Converts the given user name to the SID corresponding to that name.
If the userName cannot be converted to a SID, userName will be the return value.
public static UserNameToSID ( string userName ) : string
userName string The user name for which to look up the SID.
Résultat string
        public static string UserNameToSID(string userName)
        {
            if (Common.IsPosixEnvironment)
                return UnixUserInfo.UserNameToSID(userName);

            return WindowsUserInfo.AccountNameToSID(userName);
        }