我有一个COM对象实例...它是这样创建的:
Type type = TypeDelegator.GetTypeFromProgID("Broker.Application");
Object application = Activator.CreateInstance(type);
当我尝试调用一个方法时:
type.GetMethod("RefreshAll").Invoke(application, null);
-> type.GetMethod("RefreshAll")
返回null
。当我尝试使用type.GetMethods()
获取所有方法时,只有以下这些方法:
- GetLifetimeService
- InitializeLifetimeService
- CreateObjRef
- ToString
- Equals
- GetHashCode
- GetType
RefreshAll方法在哪里?我该如何调用它?