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




spatialReference
The Web ADF SpatialReference to convert.
context
The ArcGIS Server context (IServerContext), available when working with Local connections to ArcGIS Server.
Converts a Web ADF spatial reference to an ArcGIS (ArcObjects) spatial reference.

Syntax

Visual Basic (Declaration) 
Public Shared Function ToISpatialReference( _
   ByVal spatialReference As SpatialReference, _
   ByVal context As IServerContext _
) As ISpatialReference
Visual Basic (Usage)Copy Code
Dim spatialReference As SpatialReference
Dim context As IServerContext
Dim value As ISpatialReference
 
value = Converter.ToISpatialReference(spatialReference, context)
C# 
public static ISpatialReference ToISpatialReference( 
   SpatialReference spatialReference,
   IServerContext context
)

Parameters

spatialReference
The Web ADF SpatialReference to convert.
context
The ArcGIS Server context (IServerContext), available when working with Local connections to ArcGIS Server.

Return Value

The ArcGIS spatial reference (ISpatialReference) with the equivalent properties.

See Also

© 2010 All Rights Reserved.