我在 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