I am working on a desktop client for in-house use. I am writingit inVisual Basic.NET using the .NET SDK 1.2.2.
I have the following code (where `ws` is an `OKMWebservice` instance)
This could be easily solved if I used C# instead of VB.NET or directly used the REST services. However I would like to keep using the SDK and I have to use VB.NET as everything we do is written in VB.NET.
Is there a way I can still access the title/properties while still using the VB.NET and the SDK?
I have the following code (where `ws` is an `OKMWebservice` instance)
Code: Select all
I want to show the title of the documents that are the results of a search. However because of how the fields in the class `Document` are named I get the following error message: Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
Dim search = TextBox1.Text
Try
For Each result In ws.findByContent(search)
Dim doc = ws.getDocumentProperties(result.node.path)
ListView1.Items.Add(doc.title)
Next
Catch exc As System.Exception
Console.WriteLine(exc)
End Try
End Sub
Code: Select all
This would be easily solved if I used C# instead of VB.NET, but I have to use VB.NET as everything we do is written in VB.NET. 'title' is ambiguous because multiple kinds of members with this name exist in class 'Document'.
This could be easily solved if I used C# instead of VB.NET or directly used the REST services. However I would like to keep using the SDK and I have to use VB.NET as everything we do is written in VB.NET.
Is there a way I can still access the title/properties while still using the VB.NET and the SDK?