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


IGpSpRefObject.CreateFromFile Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Geoprocessing > ESRI.ArcGIS.Geoprocessing > Interfaces > IG > IGpSpRefObject Interface > IGpSpRefObject.CreateFromFile Method
ArcGIS Developer Help

IGpSpRefObject.CreateFromFile Method

Create the spatial reference from a projection file.

[Visual Basic .NET]
Public Sub CreateFromFile ( _
    ByVal prjFile As String _
)
[C#]
public void CreateFromFile (
    string prjFile
);
[C++]
HRESULT CreateFromFile(
  BSTR prjFile
);
[C++]
Parameters
prjFile [in]

prjFile is a parameter of type BSTR

Product Availability

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

See Also

IGpSpRefObject Interface