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 6.0]
Sub Connect(
    ByVal FilePath As String _
)
[Visual Basic .NET]
Public Sub Connect ( _
    ByVal FilePath As String _
)
[C#]
public void Connect (
    string FilePath
);
[Java]
public void connect (
    String FilePath
)
throws
    IOException,
    AutomationException
[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.

See Also

IMapServerInit Interface