private void DisplayEnvironmentPameters(Geoprocessor gp) { IGpEnumList environments = gp.ListEnvironments("*"); environments.Reset(); string env = environments.Next(); while (env != "") { txtMessages.Text += "环境参数: " + env + "\r\n"; env = environments.Next(); } txtMessages.Update(); }