0
我需要一些帮助理解为什么GuiApplication的儿童属性是空的。GuiApplication儿童空
我做这样的事情:
var engine = SapRot.GetType().InvokeMember("GetScriptingEngine", System.Reflection.BindingFlags.InvokeMethod, null, SapRot, null);
var connection = (engine as GuiApplication).OpenConnection(connectionString);
var session = connection.Children.ElementAt(0) as GuiSession;
所有这些对象(发动机,连接和会话)是ComObjects,我真的不熟悉,以及connection.Children总是空的。但是,在运行应用程序时,我发现它确实连接到SAP登录和SAP应用程序。
预先感谢您。