ArcGIS Runtime SDK for WPF - Library Reference
GetSamplesTaskAsync(Geometry,GetSamplesParameters) Method
See Also 
ESRI.ArcGIS.Client.Tasks Namespace > GetSamplesTask Class > GetSamplesTaskAsync Method : GetSamplesTaskAsync(Geometry,GetSamplesParameters) 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.
Task 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 Overloads Function GetSamplesTaskAsync( _
   ByVal geometry As Geometry, _
   ByVal parameter As GetSamplesParameters _
) As Task(Of GetSamplesResult)
C# 
public Task<GetSamplesResult> GetSamplesTaskAsync( 
   Geometry geometry,
   GetSamplesParameters parameter
)

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.

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.