I have an instance of a COM object... which is created like this:
Type type = TypeDelegator.GetTypeFromProgID("Broker.Application");
Object application = Activator.CreateInstance(type);
When I try to invoke a method:
type.GetMethod("RefreshAll").Invoke(application, null);
-> type.GetMethod("RefreshAll")
returns null
.
When I try to get all the methods with type.GetMethods()
, there is only these methods:
- GetLifetimeService
- InitializeLifetimeService
- CreateObjRef
- ToString
- Equals
- GetHashCode
- GetType
Where is the RefreshAll Method? And how can I invoke it?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…