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


IGeoDataServerInit.InitFromFile Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > GeodatabaseDistributed > ESRI.ArcGIS.GeoDatabaseDistributed > Interfaces > IG > IGeoDataServerInit Interface > IGeoDataServerInit.InitFromFile Method
ArcGIS Developer Help

IGeoDataServerInit.InitFromFile Method

Initializes a GeoDataServer object from a geodatabase or an sde connection file (*.sde).

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

file is a parameter of type BSTR

Product Availability

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

Remarks

The InitFromFile method uses a file system path to a geodatabase or an ArcSDE geodatabase connection file to initialize the GeoDataServer.

See Also

IGeoDataServerInit Interface