Class AGSServerConnectionFactoryClass
[ClassInterface(ClassInterfaceType.None)]
[Guid("7932A86E-F371-4C64-AB84-9E83DDA2581B")]
public class AGSServerConnectionFactoryClass : AGSServerConnectionFactory, IAGSServerConnectionFactory3, IAGSServerConnectionFactory2, IAGSServerConnectionFactory
- Inheritance
-
AGSServerConnectionFactoryClass
- Implements
- Inherited Members
Constructors
AGSServerConnectionFactoryClass()
public AGSServerConnectionFactoryClass()
Explicit Interface Implementations
DefaultHttpTimeout
The default timeout for http requests to the server (in seconds).
virtual int DefaultHttpTimeout { get; set; }
Returns
GetHostedServers(int)
Returns server object names for the hosted servers accessible to the user.
virtual IEnumAGSServerConnectionName GetHostedServers(int hWnd)
Parameters
hWndint
Returns
GetInServerConnectionName()
Returns a server connection name that can be used to connect to the server from within a server process. Fails if run outside a server process.
virtual IAGSServerConnectionName GetInServerConnectionName()
Returns
IAGSServerConnectionFactory2_Open(IPropertySet, int)
virtual IAGSServerConnection IAGSServerConnectionFactory2_Open(IPropertySet pConnectionProperties, int hWnd)
Parameters
pConnectionPropertiesIPropertySethWndint
Returns
IAGSServerConnectionFactory3_DefaultHttpTimeout
virtual int IAGSServerConnectionFactory3_DefaultHttpTimeout { get; set; }
Returns
IAGSServerConnectionFactory3_Open(IPropertySet, int)
virtual IAGSServerConnection IAGSServerConnectionFactory3_Open(IPropertySet pConnectionProperties, int hWnd)
Parameters
pConnectionPropertiesIPropertySethWndint
Returns
IAGSServerConnectionFactory3_OpenFromFile(string, int)
virtual IAGSServerConnection IAGSServerConnectionFactory3_OpenFromFile(string fileName, int hWnd)
Parameters
Returns
IAGSServerConnectionFactory3_ReadConnectionPropertiesFromFile(string)
virtual IPropertySet IAGSServerConnectionFactory3_ReadConnectionPropertiesFromFile(string fileName)
Parameters
fileNamestring
Returns
Open(IPropertySet, int)
Opens the GIS server connection specified by the connection properties.
virtual IAGSServerConnection Open(IPropertySet pConnectionProperties, int hWnd)
Parameters
pConnectionPropertiesIPropertySethWndint
Returns
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.
OpenFromFile(string, int)
Opens the server connection specified by the given file name.
virtual IAGSServerConnection OpenFromFile(string fileName, int hWnd)
Parameters
Returns
ReadConnectionPropertiesFromFile(string)
The connection properties from the specified file.
virtual IPropertySet ReadConnectionPropertiesFromFile(string fileName)
Parameters
fileNamestring