ArcObjects Library Reference
About the Spatial Query REST SOE Sample
[C#]
[Visual Basic .NET]