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


IExternalSerializerGdb.WriteSpatialReference Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Geodatabase > ESRI.ArcGIS.GeoDatabase > Interfaces > IE > IExternalSerializerGdb Interface > IExternalSerializerGdb.WriteSpatialReference Method
ArcGIS Developer Help

IExternalSerializerGdb.WriteSpatialReference Method

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

[Visual Basic .NET]
Public Sub WriteSpatialReference ( _
    ByVal propname As String, _
    ByVal pSR As ISpatialReference _
)
[C#]
public void WriteSpatialReference (
    string propname,
    ISpatialReference pSR
);
[C++]
HRESULT WriteSpatialReference(
  BSTR propname,
  ISpatialReference* pSR
);
[C++]
Parameters
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

IExternalSerializerGdb Interface