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


ISpatialReferenceFactory.CreateESRISpatialReference Method (ArcObjects .NET 10.4 SDK)
ArcObjects Library Reference (Geometry)  

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 _
)
[C#]
public void CreateESRISpatialReference (
    string spatRefInfo,
    ref ISpatialReference SpatialReference,
    ref int cBytesRead
);
[C++]
HRESULT CreateESRISpatialReference(
  BSTR spatRefInfo,
  ISpatialReference** SpatialReference,
  long* cBytesRead
);
[C++]

Parameters spatRefInfo 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