下面一段程序中,当调用了GetUserInfo()时,问题:会返回this.ID = reader.GetInt32(0)和this.Mail = reader.GetString中ID和Mail的值吗?  还是只返回true或者false!
谢谢解答!
  
     public bool GetUserInfo()
{
strSQL = "Select * from company Where Name='"
+ this.Name + "'";
SqlConnection myCn = new SqlConnection(strConn);
myCn.Open();
SqlCommand myCmd = new SqlCommand(strSQL,myCn);
try
{
myCmd.ExecuteNonQuery();
SqlDataReader reader = myCmd.ExecuteReader();
if(reader.Read())
{
this.ID = reader.GetInt32(0);
this.Mail = reader.GetString(3);
return true;
}
else
{
return false;
}
}
catch(System.Data.SqlClient.SqlException e)
{
throw new Exception(e.Message);
}
finally
{
myCmd.Dispose();
myCn.Close();
}
}