【Aras Innovator 二次开发入门】2 使用IomFactory创建连接登陆
Aras Innovator 二次开发入门】2 使用IOMFactory创建连接登陆代码如下:
//connect innovator
string serverurl = "http://localhost/InnovatorServer";
string databasename = "InnovatorSolutions";
string username = "admin";
string password = "innovator";
HttpServerConnection connection = IomFactory.CreateHttpServerConnection(serverurl, databasename, username, password);
Item loginItem = connection.Login();
Console.WriteLine("1 =============Login Information ======================");
if (loginItem.isError())
{
Console.WriteLine("error to login the system!");
}
else
{
Console.WriteLine("Login the system successfully!");
}
登陆成功!!!
页:
[1]