ADF.Web.DataSources.ArcGISServer.Local
ToISpatialReference Method
See Also  Send Feedback
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 ESRI.ArcGIS.ADF.Web.SpatialReference.SpatialReference, _
   ByVal context As ESRI.ArcGIS.Server.IServerContext _
) As ESRI.ArcGIS.Geometry.ISpatialReference
Visual Basic (Usage)Copy Code
Dim spatialReference As ESRI.ArcGIS.ADF.Web.SpatialReference.SpatialReference
Dim context As ESRI.ArcGIS.Server.IServerContext
Dim value As ESRI.ArcGIS.Geometry.ISpatialReference
 
value = Converter.ToISpatialReference(spatialReference, context)
C# 
public static ESRI.ArcGIS.Geometry.ISpatialReference ToISpatialReference( 
   ESRI.ArcGIS.ADF.Web.SpatialReference.SpatialReference spatialReference,
   ESRI.ArcGIS.Server.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.

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2011 All Rights Reserved.