具有param对象类型的属性datamember集合类型 [英] Property datamember collection type with param object type
本文介绍了具有param对象类型的属性datamember集合类型的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
i我的WCF调用有问题我的序列化对象是
< pre lang =vb> 默认 公共 ReadOnly 属性项目( ByVal vntIndexKey 作为 对象)作为基础
获取
返回 CType (mCol.Item(vntIndexKey),Base)
结束 获取
结束 物业
当我想获得价值时,
在我的收藏中我有这个问题:
参数'Index'不是有效值。
解决方案
HI,
确定我可以解决这个问题
juste在我的方法中添加我需要指定密钥
谢谢
Hi,
i have a probleme with my WCF call my object to serialized is
Default Public ReadOnly Property Item(ByVal vntIndexKey As Object) As Base
Get
Return CType(mCol.Item(vntIndexKey), Base)
End Get
End Property
when i want to get value in my collection i have this problem :
The argument 'Index' is not a valid value.
解决方案
HI,
it s ok i m solve this probleme
juste in my method add i needed to specifie the key
thanks
这篇关于具有param对象类型的属性datamember集合类型的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文