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


IAGSServerConnectionFactory2.OpenFromFile Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > GISClient > ESRI.ArcGIS.GISClient > Interfaces > IA > IAGSServerConnectionFactory2 Interface > IAGSServerConnectionFactory2.OpenFromFile Method
ArcGIS Developer Help

IAGSServerConnectionFactory2.OpenFromFile Method

Opens the server connection specified by the given file name.

[Visual Basic .NET]
Public Function OpenFromFile ( _
    ByVal fileName As String, _
    ByVal hWnd As Integer _
) As IAGSServerConnection
[C#]
public IAGSServerConnection OpenFromFile (
    string fileName,
    int hWnd
);
[C++]
HRESULT OpenFromFile(
  BSTR fileName,
  OLE_HANDLE hWnd
);
[C++]
Parameters
fileName [in]

fileName is a parameter of type BSTR hWnd [in]
hWnd is a parameter of type OLE_HANDLE

Product Availability

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

See Also

IAGSServerConnectionFactory2 Interface