0

VB.Net 2010 にこのコードがあり、New() で「型エラー」が発生しています。

このコードは C# から変換されました。

私は何を間違っていますか?

Public Function CredentialGet(ByVal sKey As String, ByRef sCred As String)
    Dim sCredential As Element.Credential

    sCredential  = apiclient.SearchCredentials(sSoftwareKey, SessionID,
        New() {New Element.SearchTerm() With {.FilterKey = "APK", .Value = sKey}})
    sCred = sCredential.CredentialID
End Function
4

2 に答える 2

0

New() なに?そこにオブジェクト名がありません。匿名オブジェクトを渡しています。

于 2013-06-04T20:32:39.710 に答える