This document is archived and information here might be outdated.  Recommended version.


IJSONConverterGeometry.WriteSpatialReference Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Geometry > ESRI.ArcGIS.Geometry > Interfaces > IJ > IJSONConverterGeometry Interface > IJSONConverterGeometry.WriteSpatialReference Method
ArcGIS Developer Help

IJSONConverterGeometry.WriteSpatialReference Method

Writes spatial reference object. Pass NULL as propname to write a standalone JSON object.

[Visual Basic .NET]
Public Sub WriteSpatialReference ( _
    ByVal pWriter As IJSONWriter, _
    ByVal propname As String, _
    ByVal pSR As ISpatialReference _
)
[C#]
public void WriteSpatialReference (
    IJSONWriter pWriter,
    string propname,
    ISpatialReference pSR
);
[C++]
HRESULT WriteSpatialReference(
  IJSONWriter* pWriter,
  BSTR propname,
  ISpatialReference* pSR
);
[C++]
Parameters
pWriter [in]

pWriter is a parameter of type IJSONWriter* propname [in]
propname is a parameter of type BSTR pSR [in]
pSR is a parameter of type ISpatialReference*

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

See Also

IJSONConverterGeometry Interface