嘿,亲!知识可是无价之宝呢,但咱这精心整理的资料也耗费了不少心血呀。小小地破费一下,绝对物超所值哦!如有下载和支付问题,请联系我们QQ(微信同号):813200300
本次赞助数额为: 2 元微信扫码支付:2 元
请留下您的邮箱,我们将在2小时内将文件发到您的邮箱
public static IFeatureWorkspace OpenSdeWorkspaceByPropertySet(string server, string user, string password, string database, string instance = "port:5151", string version = "sde.DEFAULT")
{
//string db = "";
IPropertySet propSet = new PropertySetClass();
propSet.SetProperty("SERVER", server);//192.168.1.168
propSet.SetProperty("INSTANCE", instance);//sde:oracle11g:192.168.1.168/orcl"
propSet.SetProperty("USER", user);//sdea
propSet.SetProperty("PASSWORD", password);//sa
propSet.SetProperty("DATABASE", database);//orcl
propSet.SetProperty("VERSION", version);//sde.DEFAULT
IWorkspaceFactory workspaceFactory = new SdeWorkspaceFactoryClass();
return (IFeatureWorkspace)workspaceFactory.Open(propSet, 0);
}