Select to view content in your preferred language

How to get Values of specific Fields with IdentidyFunction

681
1
07-19-2010 05:08 AM
UlfGrimhardt
Deactivated User
Hi

I implemented the identify Function from the Samples Page in my Application. Now i would like to get the Value of a specific Field to put it into a variable.
How can i fetch specific Field values in Silverlight?
0 Kudos
1 Reply
bbieb
by
Frequent Contributor
This should get you there....

    Private Sub IdentifyTask_ExecuteCompleted(ByVal sender As Object, ByVal args As IdentifyEventArgs)

        Dim drawGraphicslayer As GraphicsLayer = TryCast(MyMap.Layers("drawGraphicsLayer"), GraphicsLayer)
        drawGraphicslayer.ClearGraphics()

        BusyIndicator.IsBusy = False

        If args.IdentifyResults.Count = 0 Then
            MessageBox.Show("Nothing was found." & vbCr & "Please zoom in closer and try again.", "Nothing Found", MessageBoxButton.OK)
        Else
            MessageBox.Show("objectID = " & args.IdentifyResults(0).Feature.Attributes("ObjectID"), "ObjectID", MessageBoxButton.OK))
        End If

    End Sub
brian
0 Kudos