Chinaunix首页 | 论坛 | 博客
  • 博客访问: 314351
  • 博文数量: 118
  • 博客积分: 2010
  • 博客等级: 大尉
  • 技术积分: 1163
  • 用 户 组: 普通用户
  • 注册时间: 2009-08-27 12:09
文章分类

全部博文(118)

文章存档

2023年(20)

2022年(3)

2021年(1)

2020年(1)

2019年(7)

2013年(2)

2011年(1)

2010年(37)

2009年(46)

我的朋友

分类: WINDOWS

2009-10-13 10:27:58


try

{
BMC.ARSystem.Server server;

server = new BMC.ARSystem.Server();

server.Login("your_server", "your_user", "your_password", "");

String myForm = "your_form";

BMC.ARSystem.FieldValueList fieldValues = new BMC.ARSystem.FieldValueList();

fieldValues[2] = "username"; //Submitter


fieldValues[8] = "sometext"; //Short Description


fieldValues[7] = "New"; //Status




String entryId = server.CreateEntry(myForm, fieldValues);

Console.WriteLine("Submitted record: " + entryId.ToString());

}

catch(BMC.ARSystem.ARException e)

{

Console.WriteLine("BMC.ARSystem.Exception caught\n" + e.ToString());
}


阅读(806) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~