Opc.Ua.Com.UserIdentity.UserIdentity C# (CSharp) Méthode

UserIdentity() public méthode

Sets the username and password (extracts the domain from the username if a '\' is present).
public UserIdentity ( string username, string password ) : System
username string
password string
Résultat System
		public UserIdentity(string username, string password)
		{
			m_username = username;
			m_password = password;

			if (!String.IsNullOrEmpty(m_username))
			{
                int index = m_username.IndexOf('\\');
                
                if (index != -1)
                {
                    m_domain   = m_username.Substring(0, index);
                    m_username = m_username.Substring(index+1);
                }
			}
		}
		#endregion