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


IGeoDataServerInit.InitFromMap Method (ArcObjects .NET 10.4 SDK)
ArcObjects Library Reference (GeoDatabaseDistributed)  

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