This document is archived and information here might be outdated. Recommended version. |
ArcObjects Help for .NET developers > ArcObjects namespaces > Carto > ESRI.ArcGIS.Carto > Interfaces > IM > IMapServerInit Interface > IMapServerInit.Connect Method (ArcObjects .NET 10.5 SDK) |
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
Initializing a map server with an MSD file with this method is not supported.