ArcObjects Library Reference  (GISClient)    

IAGSServerConnectionFactory.Open Method

Opens the GIS server connection specified by the connection properties.

[Visual Basic 6.0]
Function Open(
    ByVal pConnectionProperties As IPropertySet, _
    ByVal hWnd As OLE_HANDLE _
) As IAGSServerConnection
[Visual Basic .NET]
Public Function Open ( _
    ByVal pConnectionProperties As IPropertySet, _
    ByVal hWnd As Integer _
) As IAGSServerConnection
[C#]
public IAGSServerConnection Open (
    IPropertySet pConnectionProperties,
    int hWnd
);
[Java]
public IAGSServerConnection open (
    IPropertySet pConnectionProperties,
    int hWnd
)
throws
    IOException,
    AutomationException
[C++]
HRESULT Open(
  IPropertySet* pConnectionProperties,
  OLE_HANDLE hWnd,
  IAGSServerConnection** ppConnection
);
[C++]

Parameters

pConnectionProperties [in]

  pConnectionProperties is a parameter of type IPropertySet

hWnd [in]

  hWnd is a parameter of type OLE_HANDLE

ppConnection [out, retval]

  ppConnection is a parameter of type IAGSServerConnection

Product Availability

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

Remarks

Use the Open method to create an AGSServerConnection based on a property set. The properties required in the property set depend on whether you are connecting directly to a GIS server over a LAN, or if you are connecting to a web service catalog. When connecting to a GIS server over the LAN, you need to set the machine property to be the name of the GIS server machine. When connecting to a web service catalog, you need to set the url property to the url of the web service catalog.

If the web service catalog you are connecting to is secure and requires a username and password, include them in the property set as the user and password properties, respectivly.

See Also

IAGSServerConnectionFactory Interface

Example

esriGISClient IAGSServerConnectionFactory Example

 


Feedback Send feedback on this page