关键代码
IPropertySet pPropertySet = new PropertySetClass();
pPropertySet.SetProperty("SERVER", sde.IpAdress);
pPropertySet.SetProperty("INSTANCE", "sde:oracle11g$//" + sde.IpAdress + "/" + sde.Instance);
pPropertySet.SetProperty("USER", sde.User);
pPropertySet.SetProperty("PASSWORD", sde.Password);
pPropertySet.SetProperty("AUTHENTICATION_MODE", "DBMS");
pPropertySet.SetProperty("VERSION", "SDE.DEFAULT");
标粗出的代码为关键代码