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

ISpatialReferenceInfo.FactoryCode Property (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Geometry > ESRI.ArcGIS.Geometry > Interfaces > IS > ISpatialReferenceInfo Interface > ISpatialReferenceInfo.FactoryCode Property
ArcGIS Developer Help

ISpatialReferenceInfo.FactoryCode Property

The factory code (WKID) of the spatial reference.

[Visual Basic .NET]
Public ReadOnly Property FactoryCode As Integer
public int FactoryCode {get;}
HRESULT get_FactoryCode(
  System.Int32* Code
Code [out, retval]

Code is a parameter of type long*

Product Availability

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


The factory code is an integer identifier that is unique by projection engine object type, such as a projected coordinate system. You can use a factory code in the ISpatialReferenceFactory::CreateProjectedCoordinateSystem method for example. If you create a custom projected coordinate system, the factory code is zero.

See Also

ISpatialReferenceInfo Interface