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


WMSConnection CoClass (ArcObjects .NET 10.5 SDK)
ArcObjects Library Reference (GISClient)  

WMSConnection CoClass

The Connection for WMS.

Product Availability

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

Extended Error Information

Use the ISupportErrorInfo method InterfaceSupportsErrorInfo to determine if the object supports extended error information. If the object supports extended error info, VC++ developers should use the OLE/COM IErrorInfo interface to access the ErrorInfo object. Visual Basic developers should use the global error object Err to retrieve this extended error information.

Interfaces

Interfaces Description
ISupportErrorInfo Indicates whether a specific interface can return Automation error objects.
IWMSConnection Provides access to members that supply WMS connection information.
IWMSServiceDescription Provides access to members give access to WMSServiceDescription information.

Event Interfaces

Interfaces Description
IWMSClientEvents (default) Provides access to events that occur when a URL request is made to the WMS server.

Remarks

A WMSConnection is a representation of WMS service capabilities.  These capabilities are to populate and manage the layers of the WMS service. You can access the service capabilities using IWMSServiceDescription.  You can access individual layer capabilities from IWMSLayerDescription.

 

A WMSConnection is the result of OpenEx (IWMSConnectionName) or Open (IWMSConnectionFactory). 

WMSConnection is the source of IWMSClientEvents.  You can listen to requests or exceptions on a particular WMS connection using this interface.

Working with Events

[Visual Basic 6.0]

When working with WMSConnection's default outbound interface in Visual Basic 6 declare variables as follows:

Private WithEvents pWMSConnection as WMSConnection