开发者

Get method names of un-managed components from Prog Ids using C#

I want to get the method names of un-managed components. I would be doing using the prog-id

System.Type wiType = System.Type.GetTypeFromProgID("Wind开发者_Go百科owsInstaller.Installer");
object objWI = System.Activator.CreateInstance(wiType);

//Type ty = objBLType.GetType();
foreach (MethodInfo mem in wiType.GetMethods())
{
  Console.WriteLine(mem.Name.ToString());
}

Running this doesnt give the method names in WindowsInstaller.Installer.

How can this be achieved. Thanks in advance

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜