ESRI.ArcGIS.ADF.Web.DataSources.ArcGISServer.Local
ToIGeometry Method
See Also 
ESRI.ArcGIS.ADF.Web.DataSources.ArcGISServer.Local Namespace > Converter Class : ToIGeometry Method




geometry
The Web ADF Geometry object to convert.
context
The ArcGIS Server context (IServerContext), available when working with Local connections to ArcGIS Server.
Converts a Web ADF geometry object to an ArcGIS (ArcObjects) geometry object.

Syntax

Visual Basic (Declaration) 
Public Shared Function ToIGeometry( _
   ByVal geometry As Geometry, _
   ByVal context As IServerContext _
) As IGeometry
Visual Basic (Usage)Copy Code
Dim geometry As Geometry
Dim context As IServerContext
Dim value As IGeometry
 
value = Converter.ToIGeometry(geometry, context)
C# 
public static IGeometry ToIGeometry( 
   Geometry geometry,
   IServerContext context
)

Parameters

geometry
The Web ADF Geometry object to convert.
context
The ArcGIS Server context (IServerContext), available when working with Local connections to ArcGIS Server.

Return Value

The ArcGIS (ArcObjects) geometry object (IGeometry) with the equivalent properties.

Remarks

This method supports conversion of ADF Point, Multipoint, Polyline, Polygon and Envelope geometry only. Cast the returned geometry to the appropriate type if needed.

See Also

© 2010 All Rights Reserved.