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


IGeoDataServerInit.InitFromMap 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.InitFromMap Method
ArcGIS Developer Help

IGeoDataServerInit.InitFromMap Method

Initializes a GeoDataServer object with a map document.

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

filePath is a parameter of type BSTR

Product Availability

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

Remarks

The InitFromMap method uses a file system path to an ArcMap document to initialize the GeoDataServer. The document must contain layers or tables from a single geodatabase connection. 

See Also

IGeoDataServerInit Interface