Registers a managed type as available for creation from JavaScript
code,through the Content.services.createObject and
Content.services.createManagedobject helper methods
关于这两种方法没有更多的解释,我不知道有什么不同.有谁知道这些方法之间的差异?
解决方法 Tons of information on both of these methods here.createObject
Description: Given a registered scriptAlias,this method returns a
script wrapper for the corresponding managed type.createManagedobject
Description: Given the typename of the target .NET Framework type,
this method creates a default instance of the type by using either a
parameterless constructor (for reference types) or the default value
representation (for value types).
基本上,如果对象有script alias,则使用createObject.如果您只需要创建一种对象类型的实例,则使用createManagedobject.
总结以上是内存溢出为你收集整理的silverlight – createObject和createManagedObject之间的差异全部内容,希望文章能够帮你解决silverlight – createObject和createManagedObject之间的差异所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)