0
私は、次のvb.netのWebサービスコードしている:私のようなコードをvb.net WCF Iservice(文字列の)リストとリスト(mycustomclassのは)
Public Interface IService
<OperationContract()>
Function SendEmail(CustomerNo As Int32, Password As String, FromEmail As String, _
ToEmail As List(Of String), CCemail As List(Of String), Subject As String, _
body As String, AttachmentList As List(Of DocumentDatabaseInfo)) As Boolean
End Interface
クライアント側を持っています:
client.SendEmail(_Customer_CustomerNo, "duh", "[email protected]", myToList, myCcList, "testing", "testing", myAttachmentList))
myToList
List(Of String)
myAttachmentList
あるList(Of my custom class)
であります
myToList
、およびmyCCList
私にエラーを与える:
Value of type 'List(Of String)' cannot be converted to "String()'
myAttachmentList
は私に同様のエラーを与える:
Public Class DocumentDatabaseInfo
Property CustomerNo As Int32
Property DatabaseName As String
Property DatabaseTableName As String
End Class
:
Value of type 'List(of DocumentDatabaseInfo)' cannot be converted to 'DocumentDatabaseInfo()'
DocumentDatabaseInfo
クラスは次のようになりますクラスファイルiクライアントとWebサービスの両方のサーバー上にあります。
これを解決する方法についてのご意見はありますか?
ようこそStackOverflow:コード、XML、またはデータサンプルを投稿する場合、**これらの行をテキストエディタで強調表示し、エディタツールバーの[コードサンプル]ボタン( '{}')をクリックしてくださいフォーマットと構文はそれを強調する! –
ありがとう、私はウェブサイトの初心者です。 – Chris