ArcGIS Runtime SDK for WPF - Library Reference
GetSamplesAsync Method
See Also 
ESRI.ArcGIS.Client.Tasks Namespace > GetSamplesTask Class : GetSamplesAsync Method

geometry
A geometry that defines the location(s) to be sampled. Applicable geometry types are point, multipoint, polyline, polygon, and envelope. When spatial reference is omitted in the input geometry, it will be assumed to be the spatial reference of the image service.
parameter
The get samples parameter.
userToken
The user token.
Asynchronous method that gets samples from an image server. The result of this operation includes sample point locations, pixel values and corresponding spatial resolutions of the source data for a given geometry. When the input geometry is a polyline, envelope, or polygon, sampling is based on sampleCount or sampleDistance; when the input geometry is a point or mulpoint, the point(s) are used directly. The number of sample locations derived from SampleDistance or SampleCount parameters may not exceed the limit of the image service (default is 1000).

Syntax

Visual Basic (Declaration) 
Public Sub GetSamplesAsync( _
   ByVal geometry As Geometry, _
   ByVal parameter As GetSamplesParameters, _
   Optional ByVal userToken As Object _
) 
C# 
public void GetSamplesAsync( 
   Geometry geometry,
   GetSamplesParameters parameter,
   object userToken
)

Parameters

geometry
A geometry that defines the location(s) to be sampled. Applicable geometry types are point, multipoint, polyline, polygon, and envelope. When spatial reference is omitted in the input geometry, it will be assumed to be the spatial reference of the image service.
parameter
The get samples parameter.
userToken
The user token.

Requirements

Target Platforms: Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family, Windows 7, Windows 8

See Also

© ESRI, Inc. All Rights Reserved.