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


IJSONConverterGeometry.WriteSpatialReference Method (ArcObjects .NET 10.5 SDK)
ArcObjects Library Reference (Geometry)  

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