哦,更正一下!上面的写错了,应该是这样:
m_oCatalogObject.setProperty("Name",new Object[]{"testapp"});//这句会出错。而上面那句不会出错。为什么会提示参数个数不对呢?
m_oCatalogObject.setProperty("Name",new Object[]{"testapp"});//这句会出错。而上面那句不会出错。为什么会提示参数个数不对呢?
解决方案 »
- 关于winform中datagridview绑定 两个表的问题,高手帮忙★●○☆★●○☆★●○☆★●○☆★●○☆
- 请问如何从RS232/USB端读出仪器传来的数据,并转为SQL数据
- 右对齐问题
- 请问大家我要在.NET中做一个TEXTBOX控件有文字滚动功能,并且,当我点及文字它会联接到一个网站。
- 我想实现一个类似web日记本的东西,在用treeview显示日期的时候,遇到了载入节点的困难
- 求 FTP Server 的命令
- 请大家都来讨论!来者有分
- 窗体的FormBorderStyle=None后,怎么才能在系统桌面的任务栏里显示有图标和右键菜单
- 请问有没有C#实例教程的网站
- 紧急求救,关于MonthCalendar控件。
- 关于使用datalist的一个问题
- 有没有办法将.net framework和mdac打到安装包中
http://msdn.microsoft.com/msdnmag/issues/0900/instincts/修改的地方很简单:m_oCatalogObject.setProperty("Value",new Object[]{"Name","testapp"});原因就是上面那篇文章提到的:
There are a few important things you should know about creating a new COM+ application programmatically. First, while the COMAdminCatalogObject exposes a Name property that holds the application's name and a Key property that holds the application's AppID, you cannot assign values to these properties when you've just created a new application. Instead, you must use the Value property to assign these attributes, as shown in Figure 3. However, once a COM+ application has a name and an AppID, you can query the Name and Key properties to obtain their values.