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

ISpatialReferenceFactory.CreateESRISpatialReference Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Geometry > ESRI.ArcGIS.Geometry > Interfaces > IS > ISpatialReferenceFactory Interface > ISpatialReferenceFactory.CreateESRISpatialReference Method
ArcGIS Developer Help

ISpatialReferenceFactory.CreateESRISpatialReference Method

Creates a spatial reference system and defines it from the specified ESRISpatialReference buffer.

[Visual Basic .NET]
Public Sub CreateESRISpatialReference ( _
    ByVal spatRefInfo As String, _
    ByRef SpatialReference As ISpatialReference, _
    ByRef cBytesRead As Integer _
public void CreateESRISpatialReference (
    string spatRefInfo,
    ref ISpatialReference SpatialReference,
    ref int cBytesRead
HRESULT CreateESRISpatialReference(
  BSTR spatRefInfo,
  ISpatialReference** SpatialReference,
  System.Int32* cBytesRead

spatRefInfo is a parameter of type BSTR SpatialReference [out]
SpatialReference is a parameter of type ISpatialReference** cBytesRead [out]
cBytesRead is a parameter of type long*

Product Availability

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

See Also

ISpatialReferenceFactory Interface