JScriptTypeInfo 定义
我在 VBScript 中有以下代码:
Dim control
set control = CreateObject("MSScriptControl.ScriptControl")
control.language = "jscript"
control.addCode("function test() { return {property: 'test'}; };")
Dim result
set result = control.Eval("test();")
我知道返回到 result
的对象属于 JScriptTypeInfo
类型,但我找不到有关此类型定义的任何信息,并且在 Visual Studio C# 中执行类似的代码只会在本地窗格中将其显示为 {System.__ComObject}
。
有谁知道 JScriptTypeInfo
类型的接口是什么?
I have the following code in VBScript:
Dim control
set control = CreateObject("MSScriptControl.ScriptControl")
control.language = "jscript"
control.addCode("function test() { return {property: 'test'}; };")
Dim result
set result = control.Eval("test();")
I know that the object returned to result
is of the type JScriptTypeInfo
but I can't find any information regarding the definition of this type and doing similar code in Visual Studio C# only shows this up as {System.__ComObject}
in the locals pane.
Does anyone know what the interface to the JScriptTypeInfo
type is?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我将告诉您我如何处理这种类型,因为我可以访问我正在阅读的原始 JScript 经典 ASP 页面。 JScriptTypeInfo 对象是在 ASP 中使用
new String()
语句(例如:Session( "Data" ) = new String( "Test");
)时创建的页。如果会话对象仅使用String()
语句创建(例如:Session( "Data" ) = String( "Test");
),则 VB.NET可以转换类型就好了。为了它的价值。
I'll tell you what I did to deal with this type, since I had access to the original JScript classic ASP pages that I was reading. The JScriptTypeInfo object was created when a
new String()
statement (ex:Session( "Data" ) = new String( "Test");
) was used in the ASP page. If the session object was created with just aString()
statement (ex:Session( "Data" ) = String( "Test");
), then VB.NET can convert the type just fine.For what it's worth.