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


IMapServerInit.Connect Method (ArcObjects .NET 10.5 SDK)
ArcObjects Library Reference (Carto)  

IMapServerInit.Connect Method

Initializes the map server with an mxd or pmf file stored at the specified path. The path must be accessible to the server machine.

[Visual Basic .NET]
Public Sub Connect ( _
    ByVal FilePath As String _
)
[C#]
public void Connect (
    string FilePath
);
[C++]
HRESULT Connect(
  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

Initializing a map server with an MSD file with this method is not supported.

See Also

IMapServerInit Interface